Merge lp:~jeremywootten/pantheon-files/fix-1592068-viewmode-buttons-do-not-update into lp:~elementary-apps/pantheon-files/trunk
Proposed by
Jeremy Wootten
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Adam Bieńkowski | ||||
Approved revision: | 2199 | ||||
Merged at revision: | 2199 | ||||
Proposed branch: | lp:~jeremywootten/pantheon-files/fix-1592068-viewmode-buttons-do-not-update | ||||
Merge into: | lp:~elementary-apps/pantheon-files/trunk | ||||
Diff against target: |
185 lines (+42/-33) 2 files modified
src/View/ViewContainer.vala (+23/-12) src/View/Window.vala (+19/-21) |
||||
To merge this branch: | bzr merge lp:~jeremywootten/pantheon-files/fix-1592068-viewmode-buttons-do-not-update | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adam Bieńkowski (community) | code / testing | Approve | |
Review via email: mp+297750@code.launchpad.net |
Commit message
* Fix bug #1592068: "View buttons don't update".
Description of the change
This branch ensures that the viewmode switch is updated when required and also that it is made insensitive when appropriate (that is when the view is showing an error message or when a connect server dialog is showing).
The opportunity is taken to reduce the extent to which the widget "ViewContainer" directly calls functions in its controller "Window". It is made more modular by introducing a new signal to which Window listens, causing the topmenu to update. Further work is required in this area which will be the subject of a further branch.
To post a comment you must log in.
I can confirm that this is much more cleaner solution and it fixes the problems with navigation buttons and view mode switcher as well.
Only one thing: update_view_method is no longer needed as this is done already in update_top_menu, even the compiler points this out, we should remove it.