aboutsummaryrefslogtreecommitdiff
path: root/src/im-application-list.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars@uebernic.de>2015-05-05 16:47:39 +0000
committerCI Train Bot <ci-train-bot@canonical.com>2015-05-05 16:47:39 +0000
commit9d3e386eff54e37dc827e5a24c9ce1b616b29636 (patch)
treec476a64f00060169c63f85001b7ae273dcb95bf4 /src/im-application-list.c
parent543e5c2759d9646846d7881899cff2851988bc1b (diff)
parenteccb7dcb8c72a0ff68325684c4f2e28f7cad2b3f (diff)
downloadayatana-indicator-messages-9d3e386eff54e37dc827e5a24c9ce1b616b29636.tar.gz
ayatana-indicator-messages-9d3e386eff54e37dc827e5a24c9ce1b616b29636.tar.bz2
ayatana-indicator-messages-9d3e386eff54e37dc827e5a24c9ce1b616b29636.zip
application list: update root action unconditionally
Approved by: Ted Gould
Diffstat (limited to 'src/im-application-list.c')
-rw-r--r--src/im-application-list.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/im-application-list.c b/src/im-application-list.c
index 7c2c877..1ffb669 100644
--- a/src/im-application-list.c
+++ b/src/im-application-list.c
@@ -352,8 +352,8 @@ im_application_list_source_removed_action (Application *app,
g_action_map_remove_action (G_ACTION_MAP(app->source_actions), action_name);
g_signal_emit (app->list, signals[SOURCE_REMOVED], 0, app->id, action_name);
- if (application_update_draws_attention(app))
- im_application_list_update_root_action (app->list);
+ application_update_draws_attention (app);
+ im_application_list_update_root_action (app->list);
}
/* Remove a source from an application, signal up and update the status
@@ -410,8 +410,8 @@ im_application_list_message_removed_action (Application *app,
g_action_map_remove_action (G_ACTION_MAP(app->message_actions), action_name);
g_action_muxer_remove (app->message_sub_actions, action_name);
- if (application_update_draws_attention(app))
- im_application_list_update_root_action (app->list);
+ application_update_draws_attention (app);
+ im_application_list_update_root_action (app->list);
g_signal_emit (app->list, signals[MESSAGE_REMOVED], 0, app->id, action_name);
}
@@ -928,10 +928,9 @@ im_application_list_source_added (Application *app,
g_signal_emit (app->list, signals[SOURCE_ADDED], 0, app->id, action_name, label, serialized_icon, visible);
if (visible && draws_attention && app->draws_attention == FALSE)
- {
- app->draws_attention = TRUE;
- im_application_list_update_root_action (app->list);
- }
+ app->draws_attention = TRUE;
+
+ im_application_list_update_root_action (app->list);
g_free (action_name);
g_object_unref (action);
@@ -970,8 +969,8 @@ im_application_list_source_changed (Application *app,
g_signal_emit (app->list, signals[SOURCE_CHANGED], 0, app->id, action_name, label, serialized_icon, visible);
- if (application_update_draws_attention (app))
- im_application_list_update_root_action (app->list);
+ application_update_draws_attention (app);
+ im_application_list_update_root_action (app->list);
if (serialized_icon)
g_variant_unref (serialized_icon);