Merge lp:~3v1n0/unity/disabled-close-winbutton-support into lp:unity
Status: | Merged |
---|---|
Approved by: | Marco Trevisan (Treviño) |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2321 |
Proposed branch: | lp:~3v1n0/unity/disabled-close-winbutton-support |
Merge into: | lp:unity |
Diff against target: |
134 lines (+57/-1) 6 files modified
manual-tests/WindowButtons.txt (+11/-0) plugins/unityshell/src/PluginAdapter.cpp (+26/-0) plugins/unityshell/src/PluginAdapter.h (+2/-0) plugins/unityshell/src/WindowButtons.cpp (+6/-1) plugins/unityshell/src/WindowManager.cpp (+10/-0) plugins/unityshell/src/WindowManager.h (+2/-0) |
To merge this branch: | bzr merge lp:~3v1n0/unity/disabled-close-winbutton-support |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomi Richards (community) | Approve | ||
Brandon Schaefer (community) | Approve | ||
Review via email: mp+101981@code.launchpad.net |
Commit message
WindowButtons: disable the close button if the controlled window is not closable
Added support to WindowManager to get if a window is closable and maximizable, then used the IsWindowClosable method to enable or disable the close window button.
Description of the change
Added support to WindowManager to get if a window is closable and maximizable, then used the IsWindowClosable method to enable or disable the close window button.
This is needed by few applications that disable the close button, and it's currently quite hard to test with AP due to the missing test cases (one is the Updates Manager's packages cache updater, but only after enlarging the detailed view).
Anyway this exact behavior is already tested with AP for the not-minimizable windows.
That's why I'm including here a manual test.
Confirmed working.