[gtksourceview/wip/chergert/gsv-gtk4: 79/84] view: remove use of state flags
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 79/84] view: remove use of state flags
- Date: Thu, 16 Jan 2020 00:15:10 +0000 (UTC)
commit ef531cc4675461167a70a6adb0fbd71a327a38f9
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]