[evolution] Bug #655708 - Unreadable tooltip for Memo/Task



commit a53c11fd0af71ecbec3a643a4cbe62d3b6ea8883
Author: Milan Crha <mcrha redhat com>
Date:   Thu Aug 25 19:28:51 2011 +0200

    Bug #655708 - Unreadable tooltip for Memo/Task

 calendar/gui/e-memo-table.c |    8 +++++++-
 calendar/gui/e-task-table.c |   10 +++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/calendar/gui/e-memo-table.c b/calendar/gui/e-memo-table.c
index ec68621..d8388d0 100644
--- a/calendar/gui/e-memo-table.c
+++ b/calendar/gui/e-memo-table.c
@@ -549,6 +549,8 @@ memo_table_query_tooltip (GtkWidget *widget,
 		gtk_misc_set_alignment (GTK_MISC (l), 0.0, 0.5);
 		gtk_box_pack_start (GTK_BOX (w), l, FALSE, FALSE, 0);
 		g_free (tmp);
+
+		gtk_widget_modify_fg (l, GTK_STATE_NORMAL, &(style->text[GTK_STATE_NORMAL]));
 	}
 
 	e_cal_component_get_dtstart (new_comp, &dtstart);
@@ -611,6 +613,8 @@ memo_table_query_tooltip (GtkWidget *widget,
 		l = gtk_label_new (tmp2->str);
 		gtk_misc_set_alignment (GTK_MISC (l), 0.0, 0.5);
 		gtk_box_pack_start (GTK_BOX (w), l, FALSE, FALSE, 0);
+
+		gtk_widget_modify_fg (l, GTK_STATE_NORMAL, &(style->text[GTK_STATE_NORMAL]));
 	}
 
 	g_string_free (tmp2, TRUE);
@@ -638,7 +642,9 @@ memo_table_query_tooltip (GtkWidget *widget,
 	if (tmp2->len) {
 		l = gtk_label_new (tmp2->str);
 		gtk_misc_set_alignment (GTK_MISC (l), 0.0, 0.5);
-		gtk_box_pack_start (GTK_BOX (box), l, FALSE, FALSE, 0);
+		gtk_box_pack_start (GTK_BOX (w), l, FALSE, FALSE, 0);
+
+		gtk_widget_modify_fg (l, GTK_STATE_NORMAL, &(style->text[GTK_STATE_NORMAL]));
 	}
 
 	g_string_free (tmp2, TRUE);
diff --git a/calendar/gui/e-task-table.c b/calendar/gui/e-task-table.c
index c77c0a8..9125206 100644
--- a/calendar/gui/e-task-table.c
+++ b/calendar/gui/e-task-table.c
@@ -770,6 +770,8 @@ task_table_query_tooltip (GtkWidget *widget,
 		gtk_misc_set_alignment (GTK_MISC (l), 0.0, 0.5);
 		gtk_box_pack_start (GTK_BOX (w), l, FALSE, FALSE, 0);
 		g_free (tmp);
+
+		gtk_widget_modify_fg (l, GTK_STATE_NORMAL, &(style->text[GTK_STATE_NORMAL]));
 	}
 
 	e_cal_component_get_dtstart (new_comp, &dtstart);
@@ -830,6 +832,8 @@ task_table_query_tooltip (GtkWidget *widget,
 		l = gtk_label_new (tmp2->str);
 		gtk_misc_set_alignment (GTK_MISC (l), 0.0, 0.5);
 		gtk_box_pack_start (GTK_BOX (w), l, FALSE, FALSE, 0);
+
+		gtk_widget_modify_fg (l, GTK_STATE_NORMAL, &(style->text[GTK_STATE_NORMAL]));
 	}
 
 	g_string_free (tmp2, TRUE);
@@ -846,6 +850,8 @@ task_table_query_tooltip (GtkWidget *widget,
 
 		g_free (tmp);
 		tmp = NULL;
+
+		gtk_widget_modify_fg (l, GTK_STATE_NORMAL, &(style->text[GTK_STATE_NORMAL]));
 	}
 
 	tmp2 = g_string_new ("");
@@ -869,7 +875,9 @@ task_table_query_tooltip (GtkWidget *widget,
 		l = gtk_label_new (tmp2->str);
 		gtk_label_set_line_wrap (GTK_LABEL (l), TRUE);
 		gtk_misc_set_alignment (GTK_MISC (l), 0.0, 0.5);
-		gtk_box_pack_start (GTK_BOX (box), l, FALSE, FALSE, 0);
+		gtk_box_pack_start (GTK_BOX (w), l, FALSE, FALSE, 0);
+
+		gtk_widget_modify_fg (l, GTK_STATE_NORMAL, &(style->text[GTK_STATE_NORMAL]));
 	}
 
 	g_string_free (tmp2, TRUE);



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