Merge lp:~elementary-apps/granite/tab-bar-visibility into lp:~elementary-pantheon/granite/granite
Proposed by
David Gomes
Status: | Merged |
---|---|
Approved by: | David Gomes |
Approved revision: | 685 |
Merged at revision: | 686 |
Proposed branch: | lp:~elementary-apps/granite/tab-bar-visibility |
Merge into: | lp:~elementary-pantheon/granite/granite |
Diff against target: |
188 lines (+42/-12) 2 files modified
lib/Widgets/DynamicNotebook.vala (+39/-9) lib/Widgets/SourceList.vala (+3/-3) |
To merge this branch: | bzr merge lp:~elementary-apps/granite/tab-bar-visibility |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Niclas Lockner (community) | Approve | ||
elementary Pantheon team | Pending | ||
Review via email: mp+202517@code.launchpad.net |
Commit message
Moved all the Pantheon Terminal TabBarBehavior code to Granite.
fixing bug #1264565.
Description of the change
Moved all the Pantheon Terminal TabBarBehavior code to Granite.
fixing bug #1264565.
This now allows any app to set their tab bar visibility behavior.
To post a comment you must log in.
Looks good. I have some minor comments though:
If tab_bar_behavior is changed from never to always, the notebook's visibility isn't updated.
_tab_bar_behavior isn't explicitly initialized, but implicitly initialized to 0, which is more of a readability issue.
Line 659-664 are kind of redundant. When they are executed, _tab_bar_behavior will always be 0 = ALWAYS.
I would suggest you to extend update_ tabs_visibility to cover all cases, and then initialize tab_bar_behavior to ALWAYS in the constructor. After that the lines 590-591 and 659-664 can be dropped.