diff options
-rw-r--r-- | debian/changelog | 19 | ||||
-rw-r--r-- | src/backend-dbus/actions.c | 12 |
2 files changed, 29 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index 72588f3..1dddf7f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,22 @@ +indicator-session (12.10.5+13.10.20130821-0ubuntu1) saucy; urgency=low + + [ Charles Kerr ] + * Lock the current session before switching to the guest session. This + is done by modifying IndicatorSessionActionsDbus::switch_to_guest() + to call org.gnome.ScreenSaver's Lock function before switching to + the guest session. (LP: #1205273) + + [ Ritesh Khadgaray ] + * Lock the current session before switching to the guest session. This + is done by modifying IndicatorSessionActionsDbus::switch_to_guest() + to call org.gnome.ScreenSaver's Lock function before switching to + the guest session. (LP: #1205273) + + [ Ubuntu daily release ] + * Automatic snapshot from revision 406 + + -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Wed, 21 Aug 2013 06:07:34 +0000 + indicator-session (12.10.5+13.10.20130812-0ubuntu1) saucy; urgency=low [ Charles Kerr ] diff --git a/src/backend-dbus/actions.c b/src/backend-dbus/actions.c index 9030ca7..fcf850d 100644 --- a/src/backend-dbus/actions.c +++ b/src/backend-dbus/actions.c @@ -169,7 +169,7 @@ set_dm_seat (IndicatorSessionActionsDbus * self, DisplayManagerSeat * seat) if (p->dm_seat != NULL) { g_cancellable_cancel (p->dm_seat_cancellable); - g_clear_object (&p->dm_seat); + g_clear_object (&p->dm_seat_cancellable); g_clear_object (&p->dm_seat); } @@ -734,7 +734,7 @@ my_about (IndicatorSessionActions * self G_GNUC_UNUSED) ***/ static void -my_switch_to_screensaver (IndicatorSessionActions * self) +lock_current_session (IndicatorSessionActions * self) { priv_t * p = INDICATOR_SESSION_ACTIONS_DBUS(self)->priv; @@ -744,6 +744,12 @@ my_switch_to_screensaver (IndicatorSessionActions * self) } static void +my_switch_to_screensaver (IndicatorSessionActions * self) +{ + lock_current_session (self); +} + +static void my_switch_to_greeter (IndicatorSessionActions * self) { priv_t * p = INDICATOR_SESSION_ACTIONS_DBUS(self)->priv; @@ -762,6 +768,8 @@ my_switch_to_guest (IndicatorSessionActions * self) g_return_if_fail (p->dm_seat != NULL); + lock_current_session (self); + display_manager_seat_call_switch_to_guest (p->dm_seat, "", p->dm_seat_cancellable, NULL, NULL); |