aboutsummaryrefslogtreecommitdiff
path: root/src/app-section.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-08-27 12:01:13 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-08-27 12:01:13 +0200
commitacc4b2a7088a47ef3d7b8570f88833399dbfe783 (patch)
tree1865f9aff64ba685d319a0e0bc25c5631703ee23 /src/app-section.c
parent98f03a9d7d29ba2531d098f99c7f72b844f8213e (diff)
downloadayatana-indicator-messages-acc4b2a7088a47ef3d7b8570f88833399dbfe783.tar.gz
ayatana-indicator-messages-acc4b2a7088a47ef3d7b8570f88833399dbfe783.tar.bz2
ayatana-indicator-messages-acc4b2a7088a47ef3d7b8570f88833399dbfe783.zip
Make sure the icon is cleared also when a source is removed
The code was there, but an superfluous condition made the function return early.
Diffstat (limited to 'src/app-section.c')
-rw-r--r--src/app-section.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/app-section.c b/src/app-section.c
index 0487fbb..baae21f 100644
--- a/src/app-section.c
+++ b/src/app-section.c
@@ -678,16 +678,9 @@ action_removed (GActionGroup *group,
gpointer user_data)
{
AppSection *self = user_data;
- GVariant *state;
-
- state = g_action_group_get_action_state (group, action_name);
- if (!state)
- return;
self->priv->draws_attention = any_action_draws_attention (group, action_name);
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_DRAWS_ATTENTION]);
-
- g_variant_unref (state);
}
gboolean