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/com.canonical.indicator.session.backendmock.gschema.xml | |
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/com.canonical.indicator.session.backendmock.gschema.xml')
-rw-r--r-- | tests/com.canonical.indicator.session.backendmock.gschema.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/com.canonical.indicator.session.backendmock.gschema.xml b/tests/com.canonical.indicator.session.backendmock.gschema.xml index 34479df..79d0c02 100644 --- a/tests/com.canonical.indicator.session.backendmock.gschema.xml +++ b/tests/com.canonical.indicator.session.backendmock.gschema.xml @@ -21,6 +21,10 @@ <default>true</default> <summary>Is logging out allowed?</summary> </key> + <key type="b" name="can-reboot"> + <default>true</default> + <summary>Is rebooting allowed?</summary> + </key> <key type="b" name="can-lock"> <default>true</default> <summary>Is locking the session allowed?</summary> |