diff options
author | Ted Gould <ted@gould.cx> | 2012-03-09 15:13:28 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-03-09 15:13:28 -0600 |
commit | d518799d9aa5a6fc509398d25849831f9109d8d9 (patch) | |
tree | 8b411815d5d2ab580fadfea2abb5e27b18e161cf /src | |
parent | 1401a3d996e7a5c9632eb42444d333723327ab9c (diff) | |
parent | 29bf37b41e425feac66cd634d78d92c9ebb1af9e (diff) | |
download | ayatana-indicator-application-d518799d9aa5a6fc509398d25849831f9109d8d9.tar.gz ayatana-indicator-application-d518799d9aa5a6fc509398d25849831f9109d8d9.tar.bz2 ayatana-indicator-application-d518799d9aa5a6fc509398d25849831f9109d8d9.zip |
Import upstream version 0.4.92
Diffstat (limited to 'src')
-rw-r--r-- | src/application-service-appstore.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c index 2f456f4..2663003 100644 --- a/src/application-service-appstore.c +++ b/src/application-service-appstore.c @@ -284,14 +284,23 @@ bus_method_call (GDBusConnection * connection, const gchar * sender, switch (direction) { case INDICATOR_OBJECT_SCROLL_UP: delta = -delta; + orientation = "vertical"; + break; case INDICATOR_OBJECT_SCROLL_DOWN: + /* delta unchanged */ orientation = "vertical"; break; - case INDICATOR_OBJECT_SCROLL_LEFT: delta = -delta; + orientation = "horizontal"; + break; case INDICATOR_OBJECT_SCROLL_RIGHT: + /* delta unchanged */ orientation = "horizontal"; + break; + default: + g_assert_not_reached(); + break; } app = find_application_by_menu(service, dbusaddress, dbusmenuobject); @@ -1348,7 +1357,7 @@ get_applications (ApplicationServiceAppstore * appstore) GList * listpntr; gint position = 0; - g_variant_builder_init(&builder, G_VARIANT_TYPE_ARRAY); + g_variant_builder_init(&builder, G_VARIANT_TYPE ("a(sisossssss)")); for (listpntr = priv->applications; listpntr != NULL; listpntr = g_list_next(listpntr)) { Application * app = (Application *)listpntr->data; |