aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-06-27 17:56:32 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-06-27 17:56:32 +0200
commit58bb62e4b6f88e2f6688afe2e94ac0d954eacadf (patch)
tree88f5a1c53df70c60e63c8d863aa59b95f091f65f /src/messages-service.c
parent93db8c38f2252cb4d506d90721446c0ad524ca3b (diff)
downloadayatana-indicator-messages-58bb62e4b6f88e2f6688afe2e94ac0d954eacadf.tar.gz
ayatana-indicator-messages-58bb62e4b6f88e2f6688afe2e94ac0d954eacadf.tar.bz2
ayatana-indicator-messages-58bb62e4b6f88e2f6688afe2e94ac0d954eacadf.zip
Make "Clear" work again
Diffstat (limited to 'src/messages-service.c')
-rw-r--r--src/messages-service.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/messages-service.c b/src/messages-service.c
index 209abe5..2fa36b2 100644
--- a/src/messages-service.c
+++ b/src/messages-service.c
@@ -216,12 +216,20 @@ service_shutdown (IndicatorService * service, gpointer user_data)
}
static void
+app_section_remove_attention (gpointer key,
+ gpointer value,
+ gpointer user_data)
+{
+ AppSection *section = value;
+ app_section_clear_draws_attention (section);
+}
+
+static void
clear_action_activate (GSimpleAction *simple,
GVariant *param,
gpointer user_data)
{
- MessageServiceDbus *msg_service = user_data;
- message_service_dbus_set_attention(msg_service, FALSE);
+ g_hash_table_foreach (applications, app_section_remove_attention, NULL);
}
static void
@@ -352,7 +360,7 @@ main (int argc, char ** argv)
g_bus_get (G_BUS_TYPE_SESSION, NULL, got_bus, NULL);
actions = g_simple_action_group_new ();
- g_simple_action_group_add_entries (actions, entries, G_N_ELEMENTS (entries), dbus_interface);
+ g_simple_action_group_add_entries (actions, entries, G_N_ELEMENTS (entries), NULL);
action_muxer = g_action_muxer_new ();
g_action_muxer_insert (action_muxer, NULL, G_ACTION_GROUP (actions));