[gtksourceview/wip/chergert/gsv-gtk4: 119/125] view: remove use of state flags



commit ff795ca6b2688ba0f949909903b1702e25089e3a
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 15 15:40:03 2020 -0800

    view: remove use of state flags

 gtksourceview/gtksourceview.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index bc184b44..15009040 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -4643,9 +4643,7 @@ update_right_margin_colors (GtkSourceView *view)
                context = gtk_widget_get_style_context (widget);
                gtk_style_context_save (context);
                gtk_style_context_set_state (context, GTK_STATE_FLAG_NORMAL);
-               gtk_style_context_get_color (context,
-                                            gtk_style_context_get_state (context),
-                                            &color);
+               gtk_style_context_get_color (context, &color);
                gtk_style_context_restore (context);
 
                priv->right_margin_line_color = gdk_rgba_copy (&color);


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