diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2014-11-10 10:14:07 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2014-11-10 10:14:07 +0100 |
commit | ae927bc0823597b6287cb68264be74f90e16385e (patch) | |
tree | fa9c8fff57b9778ea8287cdf64ff94a24ecb6758 | |
parent | 25762ad8307f81c09307419d48fdfb94bdc396ae (diff) | |
download | libayatana-appindicator-ae927bc0823597b6287cb68264be74f90e16385e.tar.gz libayatana-appindicator-ae927bc0823597b6287cb68264be74f90e16385e.tar.bz2 libayatana-appindicator-ae927bc0823597b6287cb68264be74f90e16385e.zip |
scroll-event: change parameter to the right type
The scroll-direction parameter is of type uint, but the annotation says that
it's of Gdk.ScrollDirection. Thus, bindings always see 0 for that parameter.
This commit changes the actual type of the parameter instead of the annotation.
This should be API compatible for C while still maintaining the proper type for
bindings.
-rw-r--r-- | src/app-indicator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c index 0fc577d..ff06a08 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -526,7 +526,7 @@ app_indicator_class_init (AppIndicatorClass *klass) * AppIndicator::scroll-event: * @arg0: The #AppIndicator object * @arg1: How many steps the scroll wheel has taken - * @arg2: (type Gdk.ScrollDirection) Which direction the wheel went in + * @arg2: (type Gdk.ScrollDirection): Which direction the wheel went in * * Signaled when the #AppIndicator receives a scroll event. */ @@ -536,7 +536,7 @@ app_indicator_class_init (AppIndicatorClass *klass) G_STRUCT_OFFSET (AppIndicatorClass, scroll_event), NULL, NULL, _application_service_marshal_VOID__INT_UINT, - G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_UINT); + G_TYPE_NONE, 2, G_TYPE_INT, GDK_TYPE_SCROLL_DIRECTION); /* DBus interfaces */ if (item_node_info == NULL) { @@ -1064,7 +1064,7 @@ bus_method_call (GDBusConnection * connection, const gchar * sender, GVariant * retval = NULL; if (g_strcmp0(method, "Scroll") == 0) { - guint direction; + GdkScrollDirection direction; gint delta; const gchar *orientation; |