diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2013-08-27 16:02:11 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-08-27 16:02:11 +0000 |
commit | a55169efede80f183735d8d5119135359dd628f2 (patch) | |
tree | 2475007b5d1313f62fef6dde7d4946b59231791e | |
parent | 6ded3e619d7308b6eda2bf0928b226378b565d1b (diff) | |
parent | 35c8e4cc25c0012c3d896cc52225874e9049780b (diff) | |
download | ayatana-indicator-messages-a55169efede80f183735d8d5119135359dd628f2.tar.gz ayatana-indicator-messages-a55169efede80f183735d8d5119135359dd628f2.tar.bz2 ayatana-indicator-messages-a55169efede80f183735d8d5119135359dd628f2.zip |
Remove extraneous variable 'old_draw'.
Approved by PS Jenkins bot, Charles Kerr.
-rw-r--r-- | src/im-application-list.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/im-application-list.c b/src/im-application-list.c index 17fffdc..950b5bc 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -806,14 +806,11 @@ im_application_list_source_changed (Application *app, gint64 time; const gchar *string; gboolean draws_attention; - gboolean old_draw; gboolean visible; g_variant_get (source, "(&s&s&sux&sb)", &id, &label, &iconstr, &count, &time, &string, &draws_attention); - old_draw = app_source_action_check_draw(app, id); - g_action_group_change_action_state (G_ACTION_GROUP (app->source_actions), id, g_variant_new ("(uxsb)", count, time, string, draws_attention)); @@ -821,9 +818,7 @@ im_application_list_source_changed (Application *app, g_signal_emit (app->list, signals[SOURCE_CHANGED], 0, app->id, id, label, iconstr, visible); - if (visible && !old_draw && draws_attention) - app->draws_attention = TRUE; - + app->draws_attention = visible && draws_attention; im_application_list_update_draws_attention (app->list); } |