summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Taylor <rob.taylor@codethink.co.uk>2010-03-09 11:36:14 +0000
committerRob Taylor <rob.taylor@codethink.co.uk>2010-03-09 11:36:14 +0000
commite49bdba1080a9350596e942f5019d607a12d5dd4 (patch)
tree3ecbbd57a09dfa3479d876ae6198413a9e07cd06
parent34f0aaa22f5ee4517d06b9b9ed92c853ef774348 (diff)
downloadgnome-desktop-e49bdba1080a9350596e942f5019d607a12d5dd4.tar.gz
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
-rw-r--r--configure.in2
-rw-r--r--libgnome-desktop/gnome-rr-labeler.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 3ebc5e2c..f3524f22 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 9ef4f642..9d93421b 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);