[giggle] giggle-diff-view: get the foreground color, not the background one



commit e7904b455dfcd96d711219e79ff0971abf918704
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Apr 18 18:13:28 2011 +0100

    giggle-diff-view: get the foreground color, not the background one

 src/giggle-diff-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/giggle-diff-view.c b/src/giggle-diff-view.c
index c243f23..469115e 100644
--- a/src/giggle-diff-view.c
+++ b/src/giggle-diff-view.c
@@ -299,7 +299,7 @@ diff_view_style_updated (GtkWidget *widget)
 		error_color = gdk_color_copy (&red);
 
 	context = gtk_widget_get_style_context (widget);
-	gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL, &rgba);
+	gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &rgba);
 
 	color.red = rgba.red * 65535;
 	color.green = rgba.green * 65535;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]