aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-07-21 16:20:01 -0500
committerTed Gould <ted@gould.cx>2011-07-21 16:20:01 -0500
commit390e002e058128b5fe6b2d257dcfb4819bb799a1 (patch)
treec7b0078fb8a241306b5fcdcc4fc2151ad8fd4452
parentbace9e0b978cf636ea605a638c26e0354e9fc5f1 (diff)
downloadayatana-indicator-messages-390e002e058128b5fe6b2d257dcfb4819bb799a1.tar.gz
ayatana-indicator-messages-390e002e058128b5fe6b2d257dcfb4819bb799a1.tar.bz2
ayatana-indicator-messages-390e002e058128b5fe6b2d257dcfb4819bb799a1.zip
Switching to calling a method instead of clearing in the indictor.
-rw-r--r--src/indicator-messages.c14
1 files changed, 12 insertions, 2 deletions
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;
}