aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-10-04 15:19:48 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-10-04 15:19:48 +0200
commit9afc8613cc692bb4e1cbda191d75289372e7e02f (patch)
tree6eddaf420cda9fcc3afede048025c210f8b4bad6 /src
parente449f4098ba077b789a09bd4b5caa9baafd3953d (diff)
downloadayatana-indicator-messages-9afc8613cc692bb4e1cbda191d75289372e7e02f.tar.gz
ayatana-indicator-messages-9afc8613cc692bb4e1cbda191d75289372e7e02f.tar.bz2
ayatana-indicator-messages-9afc8613cc692bb4e1cbda191d75289372e7e02f.zip
app_source_action_check_draw: reset app->draws_attention
Fixes a bug: if a source drawing attention is removed, this function would leave app->draws_attention set to TRUE.
Diffstat (limited to 'src')
-rw-r--r--src/im-application-list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/im-application-list.c b/src/im-application-list.c
index b63e4be..c6105a1 100644
--- a/src/im-application-list.c
+++ b/src/im-application-list.c
@@ -267,6 +267,8 @@ application_update_draws_attention (Application * app)
gchar **it;
gboolean was_drawing_attention = app->draws_attention;
+ app->draws_attention = FALSE;
+
source_actions = g_action_group_list_actions (G_ACTION_GROUP (app->source_actions));
for (it = source_actions; *it && !app->draws_attention; it++)
app->draws_attention = app_source_action_check_draw (app, *it);