Merge lp:~charlesk/indicator-session/lp-1205273 into lp:indicator-session/13.10

Proposed by Charles Kerr
Status: Merged
Approved by: Ted Gould
Approved revision: 409
Merged at revision: 406
Proposed branch: lp:~charlesk/indicator-session/lp-1205273
Merge into: lp:indicator-session/13.10
Diff against target: 43 lines (+10/-2)
1 file modified
src/backend-dbus/actions.c (+10/-2)
To merge this branch: bzr merge lp:~charlesk/indicator-session/lp-1205273
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Ted Gould (community) Approve
Review via email: mp+181050@code.launchpad.net

Commit message

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.

Description of the change

Lock the current session before switching to the guest session.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ted Gould (ted) wrote :

The code looks fine, but the failure seems to be in the test suite timing on ARM. Probably unrelated, but not top-approving to see if it should be fixed in this branch or another.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ted Gould (ted) wrote :

Uhg, one more try.

Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/backend-dbus/actions.c'
2--- src/backend-dbus/actions.c 2013-07-12 12:42:07 +0000
3+++ src/backend-dbus/actions.c 2013-08-20 14:24:26 +0000
4@@ -169,7 +169,7 @@
5 if (p->dm_seat != NULL)
6 {
7 g_cancellable_cancel (p->dm_seat_cancellable);
8- g_clear_object (&p->dm_seat);
9+ g_clear_object (&p->dm_seat_cancellable);
10 g_clear_object (&p->dm_seat);
11 }
12
13@@ -734,7 +734,7 @@
14 ***/
15
16 static void
17-my_switch_to_screensaver (IndicatorSessionActions * self)
18+lock_current_session (IndicatorSessionActions * self)
19 {
20 priv_t * p = INDICATOR_SESSION_ACTIONS_DBUS(self)->priv;
21
22@@ -744,6 +744,12 @@
23 }
24
25 static void
26+my_switch_to_screensaver (IndicatorSessionActions * self)
27+{
28+ lock_current_session (self);
29+}
30+
31+static void
32 my_switch_to_greeter (IndicatorSessionActions * self)
33 {
34 priv_t * p = INDICATOR_SESSION_ACTIONS_DBUS(self)->priv;
35@@ -762,6 +768,8 @@
36
37 g_return_if_fail (p->dm_seat != NULL);
38
39+ lock_current_session (self);
40+
41 display_manager_seat_call_switch_to_guest (p->dm_seat, "",
42 p->dm_seat_cancellable,
43 NULL, NULL);

Subscribers

People subscribed via source and target branches