[pulseaudio-commits] [SCM] PulseAudio Volume Control branch, master, updated. v0.9.10-26-g964de9f

Colin Guthrie gitmailer-noreply at 0pointer.de
Fri Apr 29 09:11:23 PDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Volume Control" repository.

The master branch has been updated
      from  26d42651c5c74b8a714682d678c2a40e6531a0c8 (commit)

- Log -----------------------------------------------------------------
964de9f Add support for gtkmm-3.0 and prefer it over gtkmm-2.* by default.
-----------------------------------------------------------------------

Summary of changes:
 configure.ac      |   21 ++++++++++++++++++++-
 src/mainwindow.cc |    4 ++++
 2 files changed, 24 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------

commit 964de9fc7f6261a5f81ff3819d2be9fefd210106
Author: Marc-Antoine Perennou <Marc-Antoine at Perennou.com>
Date:   Sat Mar 26 23:29:37 2011 +0100

    Add support for gtkmm-3.0 and prefer it over gtkmm-2.* by default.
    
    Pass --disable-gtk3 to configure to build against gtk2

diff --git a/configure.ac b/configure.ac
index beb33f3..cfa3ebc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,7 +39,26 @@ AC_PROG_LN_S
 AC_TYPE_SIGNAL
 AC_HEADER_STDC
 
-PKG_CHECK_MODULES(GUILIBS, [ gtkmm-2.4 >= 2.16 sigc++-2.0 libcanberra-gtk >= 0.16 ])
+AC_ARG_ENABLE(gtk3,
+   [AS_HELP_STRING([--disable-gtk3],
+      [Whether to build or not against gtk3 [default=yes]])],
+   [enable_gtk3=$enableval],
+   [enable_gtk3="yes"])
+
+if test "x$enable_gtk3" = "xyes"; then
+   gtkmm_ver="3.0"
+   gtkmm_min_ver="2.99"
+   canberra_ver="3"
+   AC_DEFINE([HAVE_GTK3], [1], [Define if we are building against gtk3])
+   echo "***"
+   echo "*** Attempting build in GTK3 mode. Use --disable-gtk3 to build for GTK2"
+   echo "***"
+else
+   gtkmm_ver="2.4"
+   gtkmm_min_ver="2.16"
+   canberra_ver=""
+fi
+PKG_CHECK_MODULES(GUILIBS, [ gtkmm-$gtkmm_ver >= $gtkmm_min_ver sigc++-2.0 libcanberra-gtk$canberra_ver >= 0.16 ])
 AC_SUBST(GUILIBS_CFLAGS)
 AC_SUBST(GUILIBS_LIBS)
 
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index ddd0579..6d629ad 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -152,7 +152,11 @@ MainWindow* MainWindow::create() {
 void MainWindow::on_realize() {
     Gtk::Window::on_realize();
 
+#ifdef HAVE_GTK3
+    get_window()->set_cursor(Gdk::Cursor::create(Gdk::WATCH));
+#else
     get_window()->set_cursor(Gdk::Cursor(Gdk::WATCH));
+#endif /* HAVE_GTK3 */
 }
 
 MainWindow::~MainWindow() {

-- 
hooks/post-receive
PulseAudio Volume Control



More information about the pulseaudio-commits mailing list