[giggle] Change the foreground color when non-ACTIVE cell is rendered.



commit 1c95814848cf9151530f8c80675df760558a4300
Author: João Pedro Forjaz de Lacerda <jpl codethink co uk>
Date:   Sat Apr 16 22:57:49 2011 +0100

    Change the foreground color when non-ACTIVE cell is rendered.
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=647972

 src/giggle-file-list.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/giggle-file-list.c b/src/giggle-file-list.c
index 92d1738..a95f3f1 100644
--- a/src/giggle-file-list.c
+++ b/src/giggle-file-list.c
@@ -1326,9 +1326,9 @@ file_list_cell_data_sensitive_func (GtkCellLayout   *layout,
 	}
 
 	if (GTK_IS_CELL_RENDERER_TEXT (renderer)) {
-		state = (value) ? GTK_STATE_NORMAL : GTK_STATE_INSENSITIVE;
+		state = (value) ? GTK_STATE_FLAG_NORMAL : GTK_STATE_FLAG_INSENSITIVE;
 		context = gtk_widget_get_style_context (GTK_WIDGET (list));
-		gtk_style_context_get_background_color (context, state, &rgba);
+		gtk_style_context_get_color (context, state, &rgba);
 		g_object_set (renderer, "foreground-rgba", &rgba, NULL);
 	} else {
 		g_object_set (renderer, "sensitive", value, NULL);



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