Merge lp:~gangsterveggies/granite/fix-bug-1184202 into lp:~elementary-pantheon/granite/granite
Proposed by
Pedro Paredes
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | David Gomes | ||||
Approved revision: | 611 | ||||
Merged at revision: | 608 | ||||
Proposed branch: | lp:~gangsterveggies/granite/fix-bug-1184202 | ||||
Merge into: | lp:~elementary-pantheon/granite/granite | ||||
Diff against target: |
29 lines (+19/-0) 1 file modified
lib/Widgets/DynamicNotebook.vala (+19/-0) |
||||
To merge this branch: | bzr merge lp:~gangsterveggies/granite/fix-bug-1184202 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Gomes (community) | Approve | ||
Review via email: mp+180757@code.launchpad.net |
Commit message
DynamicNotebook: Fixed the bug #1184202 and the add_button's visibility is now optional.
Description of the change
Fixes the bug #1184202.
As requested, added a function set_button_visible (bool visible) that toggles the "New Tab" '+' button on and off depending on the 'visible' variable. Default setting is on.
To post a comment you must log in.
If a property is called "add_button_ visible" , you should use Vala's automatic set/get and the functions would automatically be called "set_add_ button_ visible" and "get_add_ button_ visible" , you can see many examples of this feature on DynamicNotebook .vala, here's one:
/**
_allow_ duplication = value;
* Allow duplicating tabs
*/
bool _allow_duplication = false;
public bool allow_duplication {
get { return _allow_duplication; }
set {
}
}
}