[gtksourceview] Get the state from the context
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Get the state from the context
- Date: Tue, 5 Jan 2016 08:33:30 +0000 (UTC)
commit 80c61b481cad96c77e7a33134eb1a84560addde7
Author: Paolo Borelli <pborelli gnome org>
Date: Tue Jan 5 09:29:51 2016 +0100
Get the state from the context
It is better, since it is the state actually used for rendering
and we want that color
gtksourceview/gtksourcegutter.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcegutter.c b/gtksourceview/gtksourcegutter.c
index e8c4191..f60fbca 100644
--- a/gtksourceview/gtksourcegutter.c
+++ b/gtksourceview/gtksourcegutter.c
@@ -974,9 +974,8 @@ apply_style (GtkSourceGutter *gutter,
* are not set by gtk.
*/
gtk_style_context_add_class (style_context, class);
-
gtk_style_context_get_color (style_context,
- gtk_widget_get_state_flags (GTK_WIDGET (view)),
+ gtk_style_context_get_state (style_context),
&fg_color);
gdk_cairo_set_source_rgba (cr, &fg_color);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]