Merge lp:~larsu/libappindicator/lp1071738 into lp:libappindicator/15.04

Proposed by Lars Karlitski
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 272
Merged at revision: 272
Proposed branch: lp:~larsu/libappindicator/lp1071738
Merge into: lp:libappindicator/15.04
Diff against target: 42 lines (+4/-4)
2 files modified
m4/gcov.m4 (+1/-1)
src/app-indicator.c (+3/-3)
To merge this branch: bzr merge lp:~larsu/libappindicator/lp1071738
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Sebastien Bacher Approve
Review via email: mp+241244@code.launchpad.net

Commit message

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.

Description of the change

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.

To post a comment you must log in.
Revision history for this message
Sebastien Bacher (seb128) wrote :

thanks, looks fine to me!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
lp:~larsu/libappindicator/lp1071738 updated
272. By Lars Karlitski

gcov.m4: add lcov 1.11

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'm4/gcov.m4'
2--- m4/gcov.m4 2013-12-19 16:33:24 +0000
3+++ m4/gcov.m4 2014-11-10 10:06:15 +0000
4@@ -30,7 +30,7 @@
5 AC_MSG_ERROR([ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1.])
6 fi
7
8- lcov_version_list="1.6 1.7 1.8 1.9 1.10"
9+ lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
10 AC_CHECK_PROG(LCOV, lcov, lcov)
11 AC_CHECK_PROG(GENHTML, genhtml, genhtml)
12
13
14=== modified file 'src/app-indicator.c'
15--- src/app-indicator.c 2013-04-19 12:07:21 +0000
16+++ src/app-indicator.c 2014-11-10 10:06:15 +0000
17@@ -526,7 +526,7 @@
18 * AppIndicator::scroll-event:
19 * @arg0: The #AppIndicator object
20 * @arg1: How many steps the scroll wheel has taken
21- * @arg2: (type Gdk.ScrollDirection) Which direction the wheel went in
22+ * @arg2: (type Gdk.ScrollDirection): Which direction the wheel went in
23 *
24 * Signaled when the #AppIndicator receives a scroll event.
25 */
26@@ -536,7 +536,7 @@
27 G_STRUCT_OFFSET (AppIndicatorClass, scroll_event),
28 NULL, NULL,
29 _application_service_marshal_VOID__INT_UINT,
30- G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_UINT);
31+ G_TYPE_NONE, 2, G_TYPE_INT, GDK_TYPE_SCROLL_DIRECTION);
32
33 /* DBus interfaces */
34 if (item_node_info == NULL) {
35@@ -1064,7 +1064,7 @@
36 GVariant * retval = NULL;
37
38 if (g_strcmp0(method, "Scroll") == 0) {
39- guint direction;
40+ GdkScrollDirection direction;
41 gint delta;
42 const gchar *orientation;
43

Subscribers

People subscribed via source and target branches