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
=== modified file 'configure.ac'
--- configure.ac 2011-06-28 13:50:44 +0000
+++ configure.ac 2011-07-02 03:54:28 +0000
@@ -48,12 +48,23 @@
48GIO_2_0_REQUIRED_VERSION=2.25.1348GIO_2_0_REQUIRED_VERSION=2.25.13
49LIBNOTIFY_REQUIRED_VERSION=0.7.049LIBNOTIFY_REQUIRED_VERSION=0.7.0
5050
51PKG_CHECK_MODULES(PULSEAUDIO, libpulse-mainloop-glib >= $PULSE_AUDIO_REQUIRED_VERSION
52 gio-unix-2.0)
53AC_SUBST(PULSEAUDIO_CFLAGS)
54AC_SUBST(PULSEAUDIO_LIBS)
55
51AS_IF([test "x$with_gtk" = x3],56AS_IF([test "x$with_gtk" = x3],
52 [PKG_CHECK_MODULES(APPLET, gtk+-3.0 >= $GTK3_REQUIRED_VERSION57 [PKG_CHECK_MODULES(APPLET, gtk+-3.0 >= $GTK3_REQUIRED_VERSION
53 indicator3 >= $INDICATOR_REQUIRED_VERSION58 indicator3 >= $INDICATOR_REQUIRED_VERSION
54 dbusmenu-gtk3-0.4 >= $DBUSMENUGTK_REQUIRED_VERSION59 dbusmenu-gtk3-0.4 >= $DBUSMENUGTK_REQUIRED_VERSION
55 libido3-0.1 >= $INDICATOR_DISPLAY_OBJECTS60 libido3-0.1 >= $INDICATOR_DISPLAY_OBJECTS
56 libnotify >= $LIBNOTIFY_REQUIRED_VERSION)61 libnotify >= $LIBNOTIFY_REQUIRED_VERSION)
62
63 PKG_CHECK_MODULES(SOUNDSERVICE, dbusmenu-glib-0.4 >= $DBUSMENUGLIB_REQUIRED_VERSION
64 indicator3
65 gee-1.0
66 gio-unix-2.0
67 libxml-2.0)
57 ],68 ],
58 [test "x$with_gtk" = x2],69 [test "x$with_gtk" = x2],
59 [PKG_CHECK_MODULES(APPLET, gtk+-2.0 >= $GTK_REQUIRED_VERSION70 [PKG_CHECK_MODULES(APPLET, gtk+-2.0 >= $GTK_REQUIRED_VERSION
@@ -61,23 +72,18 @@
61 dbusmenu-gtk-0.4 >= $DBUSMENUGTK_REQUIRED_VERSION72 dbusmenu-gtk-0.4 >= $DBUSMENUGTK_REQUIRED_VERSION
62 libido-0.1 >= $INDICATOR_DISPLAY_OBJECTS73 libido-0.1 >= $INDICATOR_DISPLAY_OBJECTS
63 libnotify >= $LIBNOTIFY_REQUIRED_VERSION)74 libnotify >= $LIBNOTIFY_REQUIRED_VERSION)
75
76 PKG_CHECK_MODULES(SOUNDSERVICE, dbusmenu-glib-0.4 >= $DBUSMENUGLIB_REQUIRED_VERSION
77 indicator
78 gee-1.0
79 gio-unix-2.0
80 libxml-2.0)
64 ],81 ],
65 [AC_MSG_FAILURE([Value for --with-gtk was neither 2 nor 3])]82 [AC_MSG_FAILURE([Value for --with-gtk was neither 2 nor 3])]
66)83)
67AC_SUBST(APPLET_CFLAGS)84AC_SUBST(APPLET_CFLAGS)
68AC_SUBST(APPLET_LIBS)85AC_SUBST(APPLET_LIBS)
6986
70
71PKG_CHECK_MODULES(PULSEAUDIO, libpulse-mainloop-glib >= $PULSE_AUDIO_REQUIRED_VERSION
72 gio-unix-2.0)
73AC_SUBST(PULSEAUDIO_CFLAGS)
74AC_SUBST(PULSEAUDIO_LIBS)
75
76PKG_CHECK_MODULES(SOUNDSERVICE, dbusmenu-glib-0.4 >= $DBUSMENUGLIB_REQUIRED_VERSION
77 indicator3 >= $INDICATOR_REQUIRED_VERSION
78 gee-1.0
79 gio-unix-2.0
80 libxml-2.0)
81AC_SUBST(SOUNDSERVICE_CFLAGS)87AC_SUBST(SOUNDSERVICE_CFLAGS)
82AC_SUBST(SOUNDSERVICE_LIBS)88AC_SUBST(SOUNDSERVICE_LIBS)
8389
8490
=== modified file 'src/indicator-sound.c'
--- src/indicator-sound.c 2011-06-22 19:19:49 +0000
+++ src/indicator-sound.c 2011-07-02 03:54:28 +0000
@@ -72,8 +72,8 @@
72static GtkImage * get_icon (IndicatorObject * io);72static GtkImage * get_icon (IndicatorObject * io);
73static GtkMenu * get_menu (IndicatorObject * io);73static GtkMenu * get_menu (IndicatorObject * io);
74static const gchar * get_accessible_desc (IndicatorObject * io);74static const gchar * get_accessible_desc (IndicatorObject * io);
75static void indicator_sound_scroll (IndicatorObject* io,75static void indicator_sound_scroll (IndicatorObject * io,
76 gint delta,76 IndicatorObjectEntry * entry, gint delta,
77 IndicatorScrollDirection direction);77 IndicatorScrollDirection direction);
7878
79//key/moust event handlers79//key/moust event handlers
@@ -124,7 +124,7 @@
124 io_class->get_image = get_icon;124 io_class->get_image = get_icon;
125 io_class->get_menu = get_menu;125 io_class->get_menu = get_menu;
126 io_class->get_accessible_desc = get_accessible_desc;126 io_class->get_accessible_desc = get_accessible_desc;
127 io_class->scroll = indicator_sound_scroll;127 io_class->entry_scrolled = indicator_sound_scroll;
128}128}
129129
130static void130static void
@@ -648,8 +648,8 @@
648}648}
649649
650static void650static void
651indicator_sound_scroll (IndicatorObject *io, gint delta, 651indicator_sound_scroll (IndicatorObject * io, IndicatorObjectEntry * entry,
652 IndicatorScrollDirection direction)652 gint delta, IndicatorScrollDirection direction)
653{653{
654 //g_debug("indicator-sound-scroll - current slider value");654 //g_debug("indicator-sound-scroll - current slider value");
655 IndicatorSoundPrivate* priv = INDICATOR_SOUND_GET_PRIVATE(INDICATOR_SOUND (io));655 IndicatorSoundPrivate* priv = INDICATOR_SOUND_GET_PRIVATE(INDICATOR_SOUND (io));

Subscribers

People subscribed via source and target branches