[gtksourceview] Don't use gtk_widget_get_state() (deprecated)



commit 3c5a3169b7450bfa3e04e5b24e797c72134719f2
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Tue Mar 19 14:58:27 2013 +0100

    Don't use gtk_widget_get_state() (deprecated)

 gtksourceview/gtksourcegutter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourcegutter.c b/gtksourceview/gtksourcegutter.c
index 68fee00..fb644a2 100644
--- a/gtksourceview/gtksourcegutter.c
+++ b/gtksourceview/gtksourcegutter.c
@@ -1028,7 +1028,7 @@ on_view_draw (GtkSourceView   *view,
        style_context = gtk_widget_get_style_context (GTK_WIDGET (view));
 
        gtk_style_context_get_color (style_context,
-                                    gtk_widget_get_state (GTK_WIDGET (view)),
+                                    gtk_widget_get_state_flags (GTK_WIDGET (view)),
                                     &fg_color);
 
        gdk_cairo_set_source_rgba (cr, &fg_color);


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