Merge lp://staging/~xnox/indicator-session/fix-screensaver-does-nothing into lp://staging/indicator-session/13.04
Proposed by
Dimitri John Ledkov
Status: | Merged |
---|---|
Merged at revision: | 369 |
Proposed branch: | lp://staging/~xnox/indicator-session/fix-screensaver-does-nothing |
Merge into: | lp://staging/indicator-session/13.04 |
Diff against target: |
38 lines (+9/-5) 1 file modified
src/session-menu-mgr.c (+9/-5) |
To merge this branch: | bzr merge lp://staging/~xnox/indicator-session/fix-screensaver-does-nothing |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | Needs Fixing | ||
Charles Kerr (community) | Approve | ||
Review via email:
|
Commit message
Hide "Start Screen Saver" action, if it is locked down. (LP: #1066825)
To post a comment you must log in.
In the case of (!can_lock && !can_switch) the SWITCHER_ MODE_SCREENSAVE R shows action "Start Screen Saver", but that action does nothing, since the lock_helper doesn't do anything if (!can_switch).
So instead of showing an item that does nothing, hide it by introducing SWITCHER_MODE_NONE. If there is also no guest sessions, we get duplicate separators back to back, so hide that as well.
Steps to reproduce the linked bug are:
* Boot into live-cd
* Observe that "Start Screen Saver" action does nothing