diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-08-22 16:48:34 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-08-22 16:48:34 +0000 |
commit | f3c782b38401e6002069dd01972b386e12c75c2e (patch) | |
tree | 3b4e7336bc1bf021d79f6a6015ea36be3ff2d939 /src | |
parent | 04b1c4bfc264603e668c2d262f5b55271d94e16b (diff) | |
parent | 11c56b321d793a6540d8998479de1abb5698f24a (diff) | |
download | ayatana-indicator-messages-f3c782b38401e6002069dd01972b386e12c75c2e.tar.gz ayatana-indicator-messages-f3c782b38401e6002069dd01972b386e12c75c2e.tar.bz2 ayatana-indicator-messages-f3c782b38401e6002069dd01972b386e12c75c2e.zip |
Don't use deprecated g_simple_action_group_{lookup,insert}. Fixes: https://bugs.launchpad.net/bugs/1215180.
Approved by PS Jenkins bot, Charles Kerr.
Diffstat (limited to 'src')
-rw-r--r-- | src/im-application-list.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/im-application-list.c b/src/im-application-list.c index d69609d..9e82314 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -204,7 +204,7 @@ im_application_list_update_draws_attention (ImApplicationList *list) /* Set the state */ g_action_group_change_action_state (G_ACTION_GROUP(list->globalactions), "messages", g_variant_builder_end(&builder)); - GAction * remove_action = g_simple_action_group_lookup(list->globalactions, "remove-all"); + GAction * remove_action = g_action_map_lookup_action (G_ACTION_MAP (list->globalactions), "remove-all"); if (g_hash_table_find (list->applications, application_has_items, NULL)) { g_debug("Enabling remove-all"); g_simple_action_set_enabled(G_SIMPLE_ACTION(remove_action), TRUE); @@ -239,7 +239,7 @@ static gboolean app_message_action_check_draw (Application * app, const gchar * action_name) { GAction * action = NULL; - action = g_simple_action_group_lookup (app->message_actions, action_name); + action = g_action_map_lookup_action (G_ACTION_MAP (app->message_actions), action_name); return GPOINTER_TO_INT(g_object_get_qdata(G_OBJECT(action), message_action_draws_attention_quark())); } @@ -577,7 +577,7 @@ im_application_list_init (ImApplicationList *list) GSimpleAction * messages = g_simple_action_new_stateful("messages", G_VARIANT_TYPE("a{sv}"), g_variant_new_array(G_VARIANT_TYPE("{sv}"), NULL, 0)); g_action_map_add_action(G_ACTION_MAP(list->globalactions), G_ACTION(messages)); } - g_simple_action_group_add_entries (list->globalactions, action_entries, G_N_ELEMENTS (action_entries), list); + g_action_map_add_action_entries (G_ACTION_MAP (list->globalactions), action_entries, G_N_ELEMENTS (action_entries), list); list->statusaction = g_simple_action_new_stateful("status", G_VARIANT_TYPE_STRING, g_variant_new_string("offline")); g_signal_connect(list->statusaction, "activate", G_CALLBACK(status_activated), list); |