aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Lane <iain@orangesquash.org.uk>2013-08-22 11:02:54 +0000
committerIain Lane <iain@orangesquash.org.uk>2013-08-22 11:02:54 +0000
commit26c1cfdf61e0f8f88b936e42aa4efdd17003e5de (patch)
treeea98c84fb0eb6b9074dec607dbbc64472ac9c50e
parent15dbc4de55b75c5134afc213287162c9703e28df (diff)
downloadayatana-indicator-datetime-26c1cfdf61e0f8f88b936e42aa4efdd17003e5de.tar.gz
ayatana-indicator-datetime-26c1cfdf61e0f8f88b936e42aa4efdd17003e5de.tar.bz2
ayatana-indicator-datetime-26c1cfdf61e0f8f88b936e42aa4efdd17003e5de.zip
Don't use deprecated g_simple_action_group_insert; use g_action_map_add_action instead
-rw-r--r--src/service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/service.c b/src/service.c
index 3a1841c..fec2bb1 100644
--- a/src/service.c
+++ b/src/service.c
@@ -1447,19 +1447,19 @@ init_gactions (IndicatorDatetimeService * self)
a = g_simple_action_new_stateful ("desktop-header", NULL,
create_desktop_header_state (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->desktop_header_action = a;
a = g_simple_action_new_stateful ("phone-header", NULL,
create_phone_header_state (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->phone_header_action = a;
/* add the calendar action */
a = g_simple_action_new_stateful ("calendar",
G_VARIANT_TYPE_INT64,
create_calendar_state (self));
- g_simple_action_group_insert (p->actions, G_ACTION(a));
+ g_action_map_add_action (G_ACTION_MAP(p->actions), G_ACTION(a));
g_signal_connect (a, "activate",
G_CALLBACK(on_calendar_action_activated), self);
p->calendar_action = a;