[gnumeric] Make the tooltips theme-independent. [#625966]
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Make the tooltips theme-independent. [#625966]
- Date: Wed, 4 Aug 2010 04:12:30 +0000 (UTC)
commit f535abe5f400c3d838b62878eeadd49c5d105233
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Tue Aug 3 22:11:13 2010 -0600
Make the tooltips theme-independent. [#625966]
2010-08-03 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/gui-util.c (gnumeric_create_tooltip_rc_style): set all colours
(gnumeric_create_tooltip): set the label style
ChangeLog | 5 +++++
NEWS | 1 +
src/gui-util.c | 13 +++++++++----
3 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7848916..fedfd8e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-03 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * src/gui-util.c (gnumeric_create_tooltip_rc_style): set all colours
+ (gnumeric_create_tooltip): set the label style
+
2010-08-03 Morten Welinder <terra gnome org>
* src/xml-sax-read.c (xml_sax_cell, xml_sax_cell_content): Don't
diff --git a/NEWS b/NEWS
index 773399a..7382ed1 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ Gnumeric 1.10.9
Andreas:
* Clarify autofilter dialog. [#625688]
+ * Make the tooltips theme-independent. [#625966]
Jean:
* Import Guppi graphs from gnumeric-1.0.x files. [#567953]
diff --git a/src/gui-util.c b/src/gui-util.c
index 8ea1307..45ac225 100644
--- a/src/gui-util.c
+++ b/src/gui-util.c
@@ -430,11 +430,13 @@ gnumeric_create_tooltip_rc_style (void)
int i;
rc_style = gtk_rc_style_new ();
- for (i = 5; --i >= 0 ; ) {
- rc_style->color_flags[i] = (GTK_RC_FG | GTK_RC_BG | GTK_RC_TEXT);
+ for (i = 0; i < 5 ; i++) {
+ rc_style->color_flags[i] = (GTK_RC_FG | GTK_RC_BG |
+ GTK_RC_TEXT | GTK_RC_BASE);
rc_style->bg[i] = gs_yellow;
rc_style->fg[i] = gs_black;
rc_style->text[i] = gs_black;
+ rc_style->base[i] = gs_black;
}
}
return rc_style;
@@ -468,14 +470,17 @@ gnumeric_create_tooltip (GtkWidget *ref_widget)
gtk_window_set_gravity (GTK_WINDOW (tip), GDK_GRAVITY_NORTH_WEST);
gtk_window_set_screen (GTK_WINDOW (tip), gtk_widget_get_screen (ref_widget));
gtk_widget_set_name (tip, "gnumeric-tooltip");
- if (rc_style != NULL)
- gtk_widget_modify_style (tip, rc_style);
label = gnumeric_create_tooltip_widget ();
frame = gtk_widget_get_toplevel (label);
gtk_container_add (GTK_CONTAINER (tip), frame);
+ if (rc_style != NULL) {
+ gtk_widget_modify_style (tip, rc_style);
+ gtk_widget_modify_style (label, rc_style);
+ }
+
return label;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]