diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-07-12 02:03:13 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-07-12 02:03:13 -0500 |
commit | 98d1379784757b63e317bcd9ac7af69836e473d9 (patch) | |
tree | ee960cfd6593540d48bc7b57c92754c8e5e0b76d /tests/backend-dbus/mock-object.h | |
parent | f71bc96e3131f4241256a850ab8c0b556bdac4dd (diff) | |
download | ayatana-indicator-session-98d1379784757b63e317bcd9ac7af69836e473d9.tar.gz ayatana-indicator-session-98d1379784757b63e317bcd9ac7af69836e473d9.tar.bz2 ayatana-indicator-session-98d1379784757b63e317bcd9ac7af69836e473d9.zip |
Add a 'can-reboot' property to the Actions class.
This is used for handling a couple of pathological cases where features and states mix and match:
1. unity has the same dialog for 'reboot' and 'power off', so remove the duplicate menuitem, EXCEPT:
2. if the unity prompt isn't available (such as in the greeter), show both menuitems, OR
3. if the user has prompting disabled we need both, OR
4. if the user has the 'power off' button disabled, don't treat 'reboot' as redundant.
Diffstat (limited to 'tests/backend-dbus/mock-object.h')
0 files changed, 0 insertions, 0 deletions