[gnome-desktop] Fix build failure with GTK 2.19+



commit e49bdba1080a9350596e942f5019d607a12d5dd4
Author: Rob Taylor <rob taylor codethink co uk>
Date:   Tue Mar 9 11:36:14 2010 +0000

    Fix build failure with GTK 2.19+
    
    GTK_WIDGET_STATE is now deprecated. Replaces use with gtk_widget_get_state,
    available as of GTK+ 2.18

 configure.in                        |    2 +-
 libgnome-desktop/gnome-rr-labeler.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.in b/configure.in
index 3ebc5e2..f3524f2 100644
--- a/configure.in
+++ b/configure.in
@@ -107,7 +107,7 @@ dnl If you add a version number here, you *must* add an AC_SUBST line for
 dnl it too, or it will never make it into the spec file!
 
 GDK_PIXBUF_REQUIRED=2.4.0
-GTK_REQUIRED=2.14.0
+GTK_REQUIRED=2.18.0
 GLIB_REQUIRED=2.19.1
 GCONF_REQUIRED=2.0.0
 STARTUP_NOTIFICATION_REQUIRED=0.5
diff --git a/libgnome-desktop/gnome-rr-labeler.c b/libgnome-desktop/gnome-rr-labeler.c
index 9ef4f64..9d93421 100644
--- a/libgnome-desktop/gnome-rr-labeler.c
+++ b/libgnome-desktop/gnome-rr-labeler.c
@@ -220,7 +220,7 @@ create_label_window (GnomeRRLabeler *labeler, GnomeOutputInfo *output, GdkColor
 	 * theme's colors, since the label is always shown against a light
 	 * pastel background.  See bgo#556050
 	 */
-	gtk_widget_modify_fg (widget, GTK_WIDGET_STATE (widget), &black);
+	gtk_widget_modify_fg (widget, gtk_widget_get_state (widget), &black);
 
 	gtk_container_add (GTK_CONTAINER (window), widget);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]