aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt16
-rw-r--r--debian/changelog40
-rw-r--r--src/backend-dbus/actions.c12
-rw-r--r--src/service.c9
4 files changed, 64 insertions, 13 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f8a366b..69ac18e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,18 +49,20 @@ add_custom_target (cppcheck COMMAND cppcheck --enable=all -q --error-exitcode=2
include_directories (${CMAKE_CURRENT_SOURCE_DIR}/src)
include_directories (${CMAKE_CURRENT_BINARY_DIR}/src)
-
-add_subdirectory (src)
-add_subdirectory (data)
-add_subdirectory (po)
-
+# testing & coverage
if (${enable_tests})
set (GTEST_SOURCE_DIR /usr/src/gtest/src)
set (GTEST_INCLUDE_DIR ${GTEST_SOURCE_DIR}/..)
set (GTEST_LIBS -lpthread)
enable_testing ()
if (${enable_lcov})
- include(cmake/GCov.cmake)
+ include(GCov)
endif ()
- add_subdirectory(tests)
+endif ()
+
+add_subdirectory (src)
+add_subdirectory (data)
+add_subdirectory (po)
+if (${enable_tests})
+ add_subdirectory (tests)
endif ()
diff --git a/debian/changelog b/debian/changelog
index d273b09..04d440c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,43 @@
+indicator-session (12.10.5+13.10.20130822-0ubuntu1) saucy; urgency=low
+
+ [ Charles Kerr ]
+ * remove deprecated GSimpleActionGroup API use.
+
+ [ Ubuntu daily release ]
+ * Automatic snapshot from revision 408
+
+ -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Thu, 22 Aug 2013 20:30:19 +0000
+
+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 ]
+ * Ensure that GCov CFLAGS & LIBS are set before cmake traverses into
+ the src/ directory.
+
+ [ Ubuntu daily release ]
+ * Automatic snapshot from revision 404
+
+ -- Ubuntu daily release <ps-jenkins@lists.canonical.com> Mon, 12 Aug 2013 18:39:36 +0000
+
indicator-session (12.10.5+13.10.20130717-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);
diff --git a/src/service.c b/src/service.c
index a097876..b7b1ba2 100644
--- a/src/service.c
+++ b/src/service.c
@@ -768,19 +768,20 @@ init_gactions (IndicatorSessionService * self)
v = create_guest_switcher_state (self);
a = g_simple_action_new_stateful ("switch-to-guest", NULL, v);
g_signal_connect (a, "activate", G_CALLBACK(on_guest_activated), self);
- g_simple_action_group_insert (p->actions, G_ACTION(a));
+ g_action_map_add_action (G_ACTION_MAP (p->actions), G_ACTION(a));
p->guest_switcher_action = a;
/* add switch-to-user action... parameter is the uesrname */
v = create_user_switcher_state (self);
a = g_simple_action_new_stateful ("switch-to-user", G_VARIANT_TYPE_STRING, v);
g_signal_connect (a, "activate", G_CALLBACK(on_user_activated), self);
- g_simple_action_group_insert (p->actions, G_ACTION(a));
+ g_action_map_add_action (G_ACTION_MAP (p->actions), G_ACTION(a));
p->user_switcher_action = a;
/* add the header action */
- a = g_simple_action_new_stateful ("_header", NULL, action_state_for_header (self));
- g_simple_action_group_insert (p->actions, G_ACTION(a));
+ a = g_simple_action_new_stateful ("_header", NULL,
+ action_state_for_header (self));
+ g_action_map_add_action (G_ACTION_MAP (p->actions), G_ACTION(a));
p->header_action = a;
rebuild_now (self, SECTION_HEADER);