Merge lp:~3v1n0/libindicator/scroll-api-merge into lp:libindicator/0.4

Proposed by Marco Trevisan (Treviño)
Status: Merged
Merged at revision: 409
Proposed branch: lp:~3v1n0/libindicator/scroll-api-merge
Merge into: lp:libindicator/0.4
Diff against target: 101 lines (+8/-30)
3 files modified
libindicator/indicator-object-marshal.list (+0/-1)
libindicator/indicator-object.c (+4/-23)
libindicator/indicator-object.h (+4/-6)
To merge this branch: bzr merge lp:~3v1n0/libindicator/scroll-api-merge
Reviewer Review Type Date Requested Status
Indicator Applet Developers Pending
Review via email: mp+66676@code.launchpad.net

Description of the change

Merging "scroll" and "scroll-entry" into the "entry-scrolled" signal

API change to merge the duplication of signals, as defined in the blueprint desktop-dx-o-indicators-review.

See related bug #804618 for related changes to be merged.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'libindicator/indicator-object-marshal.list'
--- libindicator/indicator-object-marshal.list 2011-01-26 23:12:42 +0000
+++ libindicator/indicator-object-marshal.list 2011-07-02 03:52:29 +0000
@@ -1,5 +1,4 @@
1VOID: POINTER, UINT, UINT1VOID: POINTER, UINT, UINT
2VOID: UINT, ENUM
3VOID: POINTER, UINT, ENUM2VOID: POINTER, UINT, ENUM
4VOID: POINTER, UINT3VOID: POINTER, UINT
5VOID: POINTER, BOOLEAN4VOID: POINTER, BOOLEAN
65
=== modified file 'libindicator/indicator-object.c'
--- libindicator/indicator-object.c 2011-03-22 15:57:30 +0000
+++ libindicator/indicator-object.c 2011-07-02 03:52:29 +0000
@@ -59,8 +59,7 @@
59 ENTRY_ADDED,59 ENTRY_ADDED,
60 ENTRY_REMOVED,60 ENTRY_REMOVED,
61 ENTRY_MOVED,61 ENTRY_MOVED,
62 SCROLL,62 ENTRY_SCROLLED,
63 SCROLL_ENTRY,
64 MENU_SHOW,63 MENU_SHOW,
65 SHOW_NOW_CHANGED,64 SHOW_NOW_CHANGED,
66 ACCESSIBLE_DESC_UPDATE,65 ACCESSIBLE_DESC_UPDATE,
@@ -151,26 +150,8 @@
151 _indicator_object_marshal_VOID__POINTER_UINT_UINT,150 _indicator_object_marshal_VOID__POINTER_UINT_UINT,
152 G_TYPE_NONE, 3, G_TYPE_POINTER, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_NONE);151 G_TYPE_NONE, 3, G_TYPE_POINTER, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_NONE);
153152
154 /**
155 IndicatorObject::scroll:
156 @arg0: The #IndicatorObject object
157 @arg1: The delta of the scroll event
158 @arg2: The orientation of the scroll event.
159
160 When the indicator receives a mouse scroll wheel event
161 from the user, this signal is emitted.
162 */
163 signals[SCROLL] = g_signal_new (INDICATOR_OBJECT_SIGNAL_SCROLL,
164 G_TYPE_FROM_CLASS(klass),
165 G_SIGNAL_RUN_LAST,
166 G_STRUCT_OFFSET (IndicatorObjectClass, scroll),
167 NULL, NULL,
168 _indicator_object_marshal_VOID__UINT_ENUM,
169 G_TYPE_NONE, 2, G_TYPE_UINT,
170 INDICATOR_OBJECT_TYPE_SCROLL_DIRECTION);
171
172/**153/**
173 IndicatorObject::scroll-entry:154 IndicatorObject::entry-scrolled:
174 @arg0: The #IndicatorObject object155 @arg0: The #IndicatorObject object
175 @arg1: A pointer to the #IndicatorObjectEntry that156 @arg1: A pointer to the #IndicatorObjectEntry that
176 receives the scroll event.157 receives the scroll event.
@@ -180,10 +161,10 @@
180 When the indicator receives a mouse scroll wheel event161 When the indicator receives a mouse scroll wheel event
181 from the user, this signal is emitted.162 from the user, this signal is emitted.
182 */163 */
183 signals[SCROLL_ENTRY] = g_signal_new (INDICATOR_OBJECT_SIGNAL_SCROLL_ENTRY,164 signals[ENTRY_SCROLLED] = g_signal_new (INDICATOR_OBJECT_SIGNAL_ENTRY_SCROLLED,
184 G_TYPE_FROM_CLASS(klass),165 G_TYPE_FROM_CLASS(klass),
185 G_SIGNAL_RUN_LAST,166 G_SIGNAL_RUN_LAST,
186 G_STRUCT_OFFSET (IndicatorObjectClass, scroll_entry),167 G_STRUCT_OFFSET (IndicatorObjectClass, entry_scrolled),
187 NULL, NULL,168 NULL, NULL,
188 _indicator_object_marshal_VOID__POINTER_UINT_ENUM,169 _indicator_object_marshal_VOID__POINTER_UINT_ENUM,
189 G_TYPE_NONE, 3, G_TYPE_POINTER, G_TYPE_UINT,170 G_TYPE_NONE, 3, G_TYPE_POINTER, G_TYPE_UINT,
190171
=== modified file 'libindicator/indicator-object.h'
--- libindicator/indicator-object.h 2011-03-22 15:57:30 +0000
+++ libindicator/indicator-object.h 2011-07-02 03:52:29 +0000
@@ -49,10 +49,8 @@
49#define INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED_ID (g_signal_lookup(INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED, INDICATOR_OBJECT_TYPE))49#define INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED_ID (g_signal_lookup(INDICATOR_OBJECT_SIGNAL_ENTRY_REMOVED, INDICATOR_OBJECT_TYPE))
50#define INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED "entry-moved"50#define INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED "entry-moved"
51#define INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED_ID (g_signal_lookup(INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED, INDICATOR_OBJECT_TYPE))51#define INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED_ID (g_signal_lookup(INDICATOR_OBJECT_SIGNAL_ENTRY_MOVED, INDICATOR_OBJECT_TYPE))
52#define INDICATOR_OBJECT_SIGNAL_SCROLL "scroll"52#define INDICATOR_OBJECT_SIGNAL_ENTRY_SCROLLED "entry-scrolled"
53#define INDICATOR_OBJECT_SIGNAL_SCROLL_ID (g_signal_lookup(INDICATOR_OBJECT_SIGNAL_SCROLL, INDICATOR_OBJECT_TYPE))53#define INDICATOR_OBJECT_SIGNAL_ENTRY_SCROLLED_ID (g_signal_lookup(INDICATOR_OBJECT_SIGNAL_ENTRY_SCROLLED, INDICATOR_OBJECT_TYPE))
54#define INDICATOR_OBJECT_SIGNAL_SCROLL_ENTRY "scroll-entry"
55#define INDICATOR_OBJECT_SIGNAL_SCROLL_ENTRY_ID (g_signal_lookup(#define INDICATOR_OBJECT_SIGNAL_SCROLL_ENTRY, INDICATOR_OBJECT_TYPE))
56#define INDICATOR_OBJECT_SIGNAL_MENU_SHOW "menu-show"54#define INDICATOR_OBJECT_SIGNAL_MENU_SHOW "menu-show"
57#define INDICATOR_OBJECT_SIGNAL_MENU_SHOW_ID (g_signal_lookup(INDICATOR_OBJECT_SIGNAL_MENU_SHOW, INDICATOR_OBJECT_TYPE))55#define INDICATOR_OBJECT_SIGNAL_MENU_SHOW_ID (g_signal_lookup(INDICATOR_OBJECT_SIGNAL_MENU_SHOW, INDICATOR_OBJECT_TYPE))
58#define INDICATOR_OBJECT_SIGNAL_SHOW_NOW_CHANGED "show-now-changed"56#define INDICATOR_OBJECT_SIGNAL_SHOW_NOW_CHANGED "show-now-changed"
@@ -96,6 +94,7 @@
96 @entry_removed: Slot for #IndicatorObject::entry-removed94 @entry_removed: Slot for #IndicatorObject::entry-removed
97 @entry_moved: Slot for #IndicatorObject::entry-moved95 @entry_moved: Slot for #IndicatorObject::entry-moved
98 @menu_show: Slot for #IndicatorObject::menu-show96 @menu_show: Slot for #IndicatorObject::menu-show
97 @entry_scrolled: Slot for #IndicatorObject::entry-scrolled
99 @show_now_changed: Slot for #IndicatorObject::show-now-changed98 @show_now_changed: Slot for #IndicatorObject::show-now-changed
100 @accessible_desc_update: Slot for #IndicatorObject::accessible-desc-update99 @accessible_desc_update: Slot for #IndicatorObject::accessible-desc-update
101*/100*/
@@ -119,10 +118,9 @@
119 void (*entry_added) (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_data);118 void (*entry_added) (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_data);
120 void (*entry_removed) (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_data);119 void (*entry_removed) (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_data);
121 void (*entry_moved) (IndicatorObject * io, IndicatorObjectEntry * entry, guint old_pos, guint new_pos, gpointer user_data);120 void (*entry_moved) (IndicatorObject * io, IndicatorObjectEntry * entry, guint old_pos, guint new_pos, gpointer user_data);
122 void (*scroll) (IndicatorObject * io, gint delta, IndicatorScrollDirection direction);121 void (*entry_scrolled) (IndicatorObject * io, IndicatorObjectEntry * entry, gint delta, IndicatorScrollDirection direction);
123 void (*menu_show) (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp, gpointer user_data);122 void (*menu_show) (IndicatorObject * io, IndicatorObjectEntry * entry, guint timestamp, gpointer user_data);
124 void (*show_now_changed) (IndicatorObject * io, IndicatorObjectEntry * entry, gboolean show_now_state, gpointer user_data);123 void (*show_now_changed) (IndicatorObject * io, IndicatorObjectEntry * entry, gboolean show_now_state, gpointer user_data);
125 void (*scroll_entry) (IndicatorObject * io, IndicatorObjectEntry * entry, gint delta, IndicatorScrollDirection direction);
126 void (*accessible_desc_update) (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_data);124 void (*accessible_desc_update) (IndicatorObject * io, IndicatorObjectEntry * entry, gpointer user_data);
127125
128 /* Reserved */126 /* Reserved */

Subscribers

People subscribed via source and target branches