[gtksourceview] Allocate spaces color.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Allocate spaces color.
- Date: Wed, 29 Dec 2010 20:11:49 +0000 (UTC)
commit e08c44e70401a3f6db44db3e3a0fa392a665ccfc
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Dec 29 21:11:15 2010 +0100
Allocate spaces color.
gtksourceview/gtksourceview.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index 3287229..632f768 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -4080,11 +4080,13 @@ update_spaces_color (GtkSourceView *view)
if (view->priv->spaces_color == NULL)
{
GtkStyleContext *context;
+ GdkRGBA color;
context = gtk_widget_get_style_context (widget);
gtk_style_context_get_color (context,
GTK_STATE_FLAG_INSENSITIVE,
- view->priv->right_margin_line_color);
+ &color);
+ view->priv->spaces_color = gdk_rgba_copy (&color);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]