aboutsummaryrefslogtreecommitdiff
path: root/src/application-service-appstore.c
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-21 18:28:23 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2011-07-21 18:28:23 +0200
commit7cd70567cf7c2f1423416513777b85c2efc93c31 (patch)
tree2c9cae13db5759e617ebce46e6278ab6e04050be /src/application-service-appstore.c
parent1a569c2f0cda67071400682be92b01b4c2641ec5 (diff)
downloadayatana-indicator-application-7cd70567cf7c2f1423416513777b85c2efc93c31.tar.gz
ayatana-indicator-application-7cd70567cf7c2f1423416513777b85c2efc93c31.tar.bz2
ayatana-indicator-application-7cd70567cf7c2f1423416513777b85c2efc93c31.zip
Don't use "SecondaryActivate" method
Using XAyatanaSecondaryActivate as libindicator doesn't support the mouse x,y position in secondary_activate signal anymore. This will drop the middle-click support also for KDE status notifier items, but this is needed as we can't control what they would do with this signal (and according to our policies we can't do anything that isn't doable also using a menu item).
Diffstat (limited to 'src/application-service-appstore.c')
-rw-r--r--src/application-service-appstore.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 4353728..09c2a99 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -300,18 +300,14 @@ bus_method_call (GDBusConnection * connection, const gchar * sender,
}
} else if (g_strcmp0(method, "ApplicationSecondaryActivateEvent") == 0) {
guint time;
- gint x;
- gint y;
-
- g_variant_get (params, "(&s&suii)", &dbusaddress, &dbusmenuobject,
- &time, &x, &y);
+ g_variant_get (params, "(&s&su)", &dbusaddress, &dbusmenuobject, &time);
app = find_application_by_menu(service, dbusaddress, dbusmenuobject);
if (app != NULL && app->dbus_proxy != NULL) {
- g_dbus_proxy_call(app->dbus_proxy, "SecondaryActivate",
- g_variant_new("(ii)", x, y),
- G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL, NULL);
+ g_dbus_proxy_call(app->dbus_proxy, "XAyatanaSecondaryActivate",
+ g_variant_new("(u)", time),
+ G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL, NULL);
}
} else {
g_warning("Calling method '%s' on the indicator service and it's unknown", method);