[anjuta] libanjuta/anjuta-file-list: Fix the help text color
- From: James Liggett <jrliggett src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] libanjuta/anjuta-file-list: Fix the help text color
- Date: Sat, 10 Aug 2013 04:36:14 +0000 (UTC)
commit 8287bf2670b0484d430c2c09546928cf4affe834
Author: James Liggett <jrliggett cox net>
Date: Fri Aug 9 21:12:48 2013 -0700
libanjuta/anjuta-file-list: Fix the help text color
libanjuta/anjuta-file-list.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/libanjuta/anjuta-file-list.c b/libanjuta/anjuta-file-list.c
index bab7a53..17a5b0e 100644
--- a/libanjuta/anjuta-file-list.c
+++ b/libanjuta/anjuta-file-list.c
@@ -80,6 +80,7 @@ path_cell_data_func (GtkTreeViewColumn *column, GtkCellRenderer *renderer,
{
gchar *path;
GtkStyleContext *context;
+ GdkRGBA fg_color;
gtk_tree_model_get (model, iter, COL_PATH, &path, -1);
context = gtk_widget_get_style_context (GTK_WIDGET (list_view));
@@ -87,9 +88,7 @@ path_cell_data_func (GtkTreeViewColumn *column, GtkCellRenderer *renderer,
/* NULL path means this is the placeholder */
if (path)
{
- GdkRGBA fg_color;
-
- gtk_style_context_get_color (context, GTK_STATE_NORMAL, &fg_color);
+ gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &fg_color);
g_object_set (G_OBJECT (renderer),
"foreground-rgba", &fg_color,
"style", PANGO_STYLE_NORMAL,
@@ -98,9 +97,7 @@ path_cell_data_func (GtkTreeViewColumn *column, GtkCellRenderer *renderer,
}
else
{
- GdkRGBA fg_color;
-
- gtk_style_context_get_color (context, GTK_STATE_INSENSITIVE, &fg_color);
+ gtk_style_context_get_color (context, GTK_STATE_FLAG_INSENSITIVE, &fg_color);
g_object_set (G_OBJECT (renderer),
"foreground-rgba", &fg_color,
"style", PANGO_STYLE_ITALIC,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]