From 390e002e058128b5fe6b2d257dcfb4819bb799a1 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 21 Jul 2011 16:20:01 -0500 Subject: Switching to calling a method instead of clearing in the indictor. --- src/indicator-messages.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/indicator-messages.c') diff --git a/src/indicator-messages.c b/src/indicator-messages.c index c2b32e9..fabf791 100644 --- a/src/indicator-messages.c +++ b/src/indicator-messages.c @@ -813,8 +813,18 @@ static void indicator_messages_middle_click (IndicatorObject * io, IndicatorObjectEntry * entry, guint time, gpointer data) { - if (!attention) + if (icon_proxy == NULL) { return; + } - clear_attention(); + g_dbus_proxy_call(icon_proxy, + "ClearAttention", + NULL, /* params */ + G_DBUS_CALL_FLAGS_NONE, + -1, /* timeout */ + NULL, /* cancel */ + NULL, + NULL); + + return; } -- cgit v1.2.3