[gtksourceview/gnome-3-18] Get the state from the context
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-3-18] Get the state from the context
- Date: Sat, 23 Apr 2016 12:34:52 +0000 (UTC)
commit afe5fd7350650d1a9525f132d416faa764b07f7d
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 65111b8..f4dccba 100644
--- a/gtksourceview/gtksourcegutter.c
+++ b/gtksourceview/gtksourcegutter.c
@@ -970,9 +970,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]