From e49bdba1080a9350596e942f5019d607a12d5dd4 Mon Sep 17 00:00:00 2001 From: Rob Taylor Date: Tue, 9 Mar 2010 11:36:14 +0000 Subject: 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 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); -- cgit v1.2.1