diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-08-22 23:52:27 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-08-22 23:52:27 -0500 |
commit | 65b6f061fe4f003eae25d423bbf2f3aa8aca1471 (patch) | |
tree | 7ccf70c7109c0c086b1c4004891ab1d2adaf12a2 | |
parent | c15ff1e02ea0a7ae1f68a66a31dc6ce7d8955575 (diff) | |
download | ayatana-indicator-power-65b6f061fe4f003eae25d423bbf2f3aa8aca1471.tar.gz ayatana-indicator-power-65b6f061fe4f003eae25d423bbf2f3aa8aca1471.tar.bz2 ayatana-indicator-power-65b6f061fe4f003eae25d423bbf2f3aa8aca1471.zip |
don't use deprecated GSimpleActionGroup APIs
-rw-r--r-- | src/service.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/service.c b/src/service.c index 81a70d5..8269448 100644 --- a/src/service.c +++ b/src/service.c @@ -751,18 +751,18 @@ init_gactions (IndicatorPowerService * self) /* add the header action */ a = g_simple_action_new_stateful ("_header", NULL, create_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->header_action = a; /* add the power-level action */ a = g_simple_action_new_stateful ("battery-level", NULL, g_variant_new_uint32(0)); g_simple_action_set_enabled (a, FALSE); - g_simple_action_group_insert (p->actions, G_ACTION(a)); + g_action_map_add_action (G_ACTION_MAP(p->actions), G_ACTION(a)); p->battery_level_action = a; /* add the brightness action */ a = g_simple_action_new_stateful ("brightness", NULL, action_state_for_brightness (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, "change-state", G_CALLBACK(on_brightness_change_requested), self); p->brightness_action = a; @@ -776,7 +776,7 @@ init_gactions (IndicatorPowerService * self) NULL, NULL); g_signal_connect (a, "activate", G_CALLBACK(on_toggle_action_activated), self); g_signal_connect_swapped (a, "notify", G_CALLBACK(rebuild_header_now), 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->show_time_action = a; /* add the show-percentage action */ @@ -789,7 +789,7 @@ init_gactions (IndicatorPowerService * self) NULL, NULL); g_signal_connect (a, "activate", G_CALLBACK(on_toggle_action_activated), self); g_signal_connect_swapped (a, "notify", G_CALLBACK(rebuild_header_now), 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->show_percentage_action = a; rebuild_header_now (self); |