From acc4b2a7088a47ef3d7b8570f88833399dbfe783 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Mon, 27 Aug 2012 12:01:13 +0200 Subject: 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. --- src/app-section.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/app-section.c') 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 -- cgit v1.2.3