From 0e4c805aa984369a1aad72e1a6591d013edaf280 Mon Sep 17 00:00:00 2001 From: "Marco Trevisan (TreviƱo)" Date: Mon, 18 Jul 2011 18:08:49 +0200 Subject: Add signal "secondary-activate" and emit it when needed When a libappindicator app get the "SecondaryActivate" dbus method call, the library redirects it to the app emitting the "secondary-activate" signal. This should be conform to the StatusNotifierItem specifications. --- src/notification-item.xml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/notification-item.xml') diff --git a/src/notification-item.xml b/src/notification-item.xml index bbf77c5..0cf043e 100644 --- a/src/notification-item.xml +++ b/src/notification-item.xml @@ -23,6 +23,10 @@ + + + + -- cgit v1.2.3 From d59df9bc7c25cd9983174b3a917a743ee4dcff1b Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 22 Jul 2011 13:56:05 -0500 Subject: Watching for the 'XAyatanaSecondaryActivate' method as well --- src/app-indicator.c | 3 ++- src/notification-item.xml | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/notification-item.xml') diff --git a/src/app-indicator.c b/src/app-indicator.c index 98aec7a..bdc4ea9 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -1024,7 +1024,8 @@ bus_method_call (GDBusConnection * connection, const gchar * sender, delta = ABS(delta); g_signal_emit(app, signals[SCROLL_EVENT], 0, delta, direction); - } else if (g_strcmp0(method, "SecondaryActivate") == 0) { + } else if (g_strcmp0(method, "SecondaryActivate") == 0 || + g_strcmp0(method, "XAyatanaSecondaryActivate") == 0) { GtkWidget *menuitem = priv->sec_activate_target; if (priv->sec_activate_enabled && menuitem && diff --git a/src/notification-item.xml b/src/notification-item.xml index 0cf043e..589a438 100644 --- a/src/notification-item.xml +++ b/src/notification-item.xml @@ -27,6 +27,9 @@ + + + -- cgit v1.2.3