aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);