aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Lane <iain@orangesquash.org.uk>2013-08-22 14:47:44 +0000
committerTarmac <Unknown>2013-08-22 14:47:44 +0000
commita7052423f62915533a5a04da8cbbf7761ac90490 (patch)
treeea98c84fb0eb6b9074dec607dbbc64472ac9c50e
parentbb89b40d70400a4650f2c4cd1b6e1bade3923456 (diff)
parent26c1cfdf61e0f8f88b936e42aa4efdd17003e5de (diff)
downloadayatana-indicator-datetime-a7052423f62915533a5a04da8cbbf7761ac90490.tar.gz
ayatana-indicator-datetime-a7052423f62915533a5a04da8cbbf7761ac90490.tar.bz2
ayatana-indicator-datetime-a7052423f62915533a5a04da8cbbf7761ac90490.zip
Don't use deprecated g_simple_action_group_insert; use g_action_map_add_action instead.
Approved by PS Jenkins bot, Lars Uebernickel.
-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;