libappindicator/libappindicator-activate-support.patch

29 lines
862 B
Diff

--- a/src/app-indicator.c
+++ b/src/app-indicator.c
@@ -1188,6 +1188,12 @@ bus_method_call (GDBusConnection * conne
{
gtk_widget_activate (menuitem);
}
+ } else if (g_strcmp0(method, "Activate") == 0) {
+ GtkMenu * menu = app_indicator_get_menu(app);
+ if (menu != NULL) {
+ gtk_menu_popup(menu, NULL, NULL, NULL, NULL, 1,
+ gtk_get_current_event_time());
+ }
} else {
g_warning("Calling method '%s' on the app-indicator and it's unknown", method);
}
--- a/src/notification-item.xml
+++ b/src/notification-item.xml
@@ -31,6 +31,10 @@
<method name="XAyatanaSecondaryActivate">
<arg type="u" name="timestamp" direction="in" />
</method>
+ <method name="Activate">
+ <arg type="i" name="x" direction="in" />
+ <arg type="i" name="y" direction="in" />
+ </method>
<!-- Signals -->
<signal name="NewIcon">