aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2014-11-10 10:14:07 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2014-11-10 10:14:07 +0100
commitae927bc0823597b6287cb68264be74f90e16385e (patch)
treefa9c8fff57b9778ea8287cdf64ff94a24ecb6758 /src
parent25762ad8307f81c09307419d48fdfb94bdc396ae (diff)
downloadlibayatana-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.
Diffstat (limited to 'src')
-rw-r--r--src/app-indicator.c6
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;