diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-08-27 12:01:13 +0200 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-08-27 12:01:13 +0200 |
commit | acc4b2a7088a47ef3d7b8570f88833399dbfe783 (patch) | |
tree | 1865f9aff64ba685d319a0e0bc25c5631703ee23 /src | |
parent | 98f03a9d7d29ba2531d098f99c7f72b844f8213e (diff) | |
download | ayatana-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')
-rw-r--r-- | src/app-section.c | 7 |
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 |