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



commit 44c3b0b04616484f3fad918b256c0a4a534d3c9d
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 4a404b2a..3b4895bd 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -4646,9 +4646,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]