Merge lp:~3v1n0/indicator-sound/scroll-api-merge into lp:indicator-sound/fourth

Proposed by Marco Trevisan (Treviño)
Status: Merged
Merge reported by: Conor Curran
Merged at revision: not available
Proposed branch: lp:~3v1n0/indicator-sound/scroll-api-merge
Merge into: lp:indicator-sound/fourth
Diff against target: 92 lines (+22/-16)
2 files modified
configure.ac (+17/-11)
src/indicator-sound.c (+5/-5)
To merge this branch: bzr merge lp:~3v1n0/indicator-sound/scroll-api-merge
Reviewer Review Type Date Requested Status
Conor Curran (community) Approve
Review via email: mp+66677@code.launchpad.net

Description of the change

Use the "entry-scrolled" signal instead of the old one.
It follows the API changes of libindicator, See related bug #804618 for more informations.
Plus fixed the compilation with GTK-2.

It needs the merge of lp:~3v1n0/libindicator/scroll-api-merge

To post a comment you must log in.
Revision history for this message
Conor Curran (cjcurran) wrote :

Thanks Trevino, will merge in and release for Thursday.

review: Approve
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Nice, however before merging it, wait for the merge of lp:~3v1n0/libindicator/scroll-api-merge too (otherwise it won't compile :P).

Revision history for this message
Conor Curran (cjcurran) wrote :

will do.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Ok, that libindicator branch is now merged, you can proceed with indicator-sound too :)

Revision history for this message
Conor Curran (cjcurran) :
review: Approve
Revision history for this message
Conor Curran (cjcurran) wrote :

On hold until the new libindicator is released.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'configure.ac'
2--- configure.ac 2011-06-28 13:50:44 +0000
3+++ configure.ac 2011-07-02 03:54:28 +0000
4@@ -48,12 +48,23 @@
5 GIO_2_0_REQUIRED_VERSION=2.25.13
6 LIBNOTIFY_REQUIRED_VERSION=0.7.0
7
8+PKG_CHECK_MODULES(PULSEAUDIO, libpulse-mainloop-glib >= $PULSE_AUDIO_REQUIRED_VERSION
9+ gio-unix-2.0)
10+AC_SUBST(PULSEAUDIO_CFLAGS)
11+AC_SUBST(PULSEAUDIO_LIBS)
12+
13 AS_IF([test "x$with_gtk" = x3],
14 [PKG_CHECK_MODULES(APPLET, gtk+-3.0 >= $GTK3_REQUIRED_VERSION
15 indicator3 >= $INDICATOR_REQUIRED_VERSION
16 dbusmenu-gtk3-0.4 >= $DBUSMENUGTK_REQUIRED_VERSION
17 libido3-0.1 >= $INDICATOR_DISPLAY_OBJECTS
18 libnotify >= $LIBNOTIFY_REQUIRED_VERSION)
19+
20+ PKG_CHECK_MODULES(SOUNDSERVICE, dbusmenu-glib-0.4 >= $DBUSMENUGLIB_REQUIRED_VERSION
21+ indicator3
22+ gee-1.0
23+ gio-unix-2.0
24+ libxml-2.0)
25 ],
26 [test "x$with_gtk" = x2],
27 [PKG_CHECK_MODULES(APPLET, gtk+-2.0 >= $GTK_REQUIRED_VERSION
28@@ -61,23 +72,18 @@
29 dbusmenu-gtk-0.4 >= $DBUSMENUGTK_REQUIRED_VERSION
30 libido-0.1 >= $INDICATOR_DISPLAY_OBJECTS
31 libnotify >= $LIBNOTIFY_REQUIRED_VERSION)
32+
33+ PKG_CHECK_MODULES(SOUNDSERVICE, dbusmenu-glib-0.4 >= $DBUSMENUGLIB_REQUIRED_VERSION
34+ indicator
35+ gee-1.0
36+ gio-unix-2.0
37+ libxml-2.0)
38 ],
39 [AC_MSG_FAILURE([Value for --with-gtk was neither 2 nor 3])]
40 )
41 AC_SUBST(APPLET_CFLAGS)
42 AC_SUBST(APPLET_LIBS)
43
44-
45-PKG_CHECK_MODULES(PULSEAUDIO, libpulse-mainloop-glib >= $PULSE_AUDIO_REQUIRED_VERSION
46- gio-unix-2.0)
47-AC_SUBST(PULSEAUDIO_CFLAGS)
48-AC_SUBST(PULSEAUDIO_LIBS)
49-
50-PKG_CHECK_MODULES(SOUNDSERVICE, dbusmenu-glib-0.4 >= $DBUSMENUGLIB_REQUIRED_VERSION
51- indicator3 >= $INDICATOR_REQUIRED_VERSION
52- gee-1.0
53- gio-unix-2.0
54- libxml-2.0)
55 AC_SUBST(SOUNDSERVICE_CFLAGS)
56 AC_SUBST(SOUNDSERVICE_LIBS)
57
58
59=== modified file 'src/indicator-sound.c'
60--- src/indicator-sound.c 2011-06-22 19:19:49 +0000
61+++ src/indicator-sound.c 2011-07-02 03:54:28 +0000
62@@ -72,8 +72,8 @@
63 static GtkImage * get_icon (IndicatorObject * io);
64 static GtkMenu * get_menu (IndicatorObject * io);
65 static const gchar * get_accessible_desc (IndicatorObject * io);
66-static void indicator_sound_scroll (IndicatorObject* io,
67- gint delta,
68+static void indicator_sound_scroll (IndicatorObject * io,
69+ IndicatorObjectEntry * entry, gint delta,
70 IndicatorScrollDirection direction);
71
72 //key/moust event handlers
73@@ -124,7 +124,7 @@
74 io_class->get_image = get_icon;
75 io_class->get_menu = get_menu;
76 io_class->get_accessible_desc = get_accessible_desc;
77- io_class->scroll = indicator_sound_scroll;
78+ io_class->entry_scrolled = indicator_sound_scroll;
79 }
80
81 static void
82@@ -648,8 +648,8 @@
83 }
84
85 static void
86-indicator_sound_scroll (IndicatorObject *io, gint delta,
87- IndicatorScrollDirection direction)
88+indicator_sound_scroll (IndicatorObject * io, IndicatorObjectEntry * entry,
89+ gint delta, IndicatorScrollDirection direction)
90 {
91 //g_debug("indicator-sound-scroll - current slider value");
92 IndicatorSoundPrivate* priv = INDICATOR_SOUND_GET_PRIVATE(INDICATOR_SOUND (io));

Subscribers

People subscribed via source and target branches