aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-08-22 17:04:31 +0000
committerTarmac <Unknown>2013-08-22 17:04:31 +0000
commit64d335e727ded534e53d5d3356354f57cb371f26 (patch)
treebd4681294a93a5f8a03cf47b10c8bee5548cd597
parent7faba398e303f64bc1309bdd6028e98b83ebd5a5 (diff)
parent3b35ef115b35d21b627f5802f364906243418247 (diff)
downloadayatana-indicator-session-64d335e727ded534e53d5d3356354f57cb371f26.tar.gz
ayatana-indicator-session-64d335e727ded534e53d5d3356354f57cb371f26.tar.bz2
ayatana-indicator-session-64d335e727ded534e53d5d3356354f57cb371f26.zip
remove deprecated GSimpleActionGroup API use.
Approved by PS Jenkins bot, Ted Gould.
-rw-r--r--src/service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/service.c b/src/service.c
index 74acd89..7303fcf 100644
--- a/src/service.c
+++ b/src/service.c
@@ -752,20 +752,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 */
v = g_variant_new ("(sssb)", "label", ICON_DEFAULT, "a11y", TRUE);
a = g_simple_action_new_stateful ("_header", NULL, v);
- g_simple_action_group_insert (p->actions, G_ACTION(a));
+ g_action_map_add_action (G_ACTION_MAP (p->actions), G_ACTION(a));
p->header_action = a;
rebuild_now (self, SECTION_HEADER);