diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2011-09-06 12:07:15 +1000 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2011-09-06 12:07:15 +1000 |
commit | 174f09a7fab9ec93789399dd5bae4563a5903c9d (patch) | |
tree | 7c5c801765c746e5275dbe0e6bfef94e01987a26 /src/lightdm.c | |
parent | 88c9372db583793ea70f9baa13d667cf7371e614 (diff) | |
download | lightdm-git-174f09a7fab9ec93789399dd5bae4563a5903c9d.tar.gz |
Add AllowGuest property to seat D-Bus interface
Diffstat (limited to 'src/lightdm.c')
-rw-r--r-- | src/lightdm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lightdm.c b/src/lightdm.c index 13b6ab02..814a2155 100644 --- a/src/lightdm.c +++ b/src/lightdm.c @@ -345,6 +345,8 @@ handle_seat_get_property (GDBusConnection *connection, if (g_strcmp0 (property_name, "CanSwitch") == 0) result = g_variant_new_boolean (seat_get_can_switch (seat)); + if (g_strcmp0 (property_name, "AllowGuest") == 0) + result = g_variant_new_boolean (seat_get_allow_guest (seat)); else if (g_strcmp0 (property_name, "Sessions") == 0) { GVariantBuilder *builder; @@ -649,6 +651,7 @@ bus_acquired_cb (GDBusConnection *connection, "<node>" " <interface name='org.freedesktop.DisplayManager.Seat'>" " <property name='CanSwitch' type='b' access='read'/>" + " <property name='AllowGuest' type='b' access='read'/>" " <property name='Sessions' type='ao' access='read'/>" " <method name='SwitchToGreeter'/>" " <method name='SwitchToUser'>" |