[gtksourceview/wip/chergert/gsv-gtk4: 120/189] 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: 120/189] view: remove use of state flags
- Date: Mon, 22 Jun 2020 21:56:04 +0000 (UTC)
commit a3dd26a2f15a01d1c4ee393938b259949dfd60e6
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]