r18934 - gnucash/trunk/src/gnome-utils - Bug #610675: Re-apply r18918, and now with the account color.
Christian Stimming
cstim at code.gnucash.org
Fri Mar 19 13:50:36 EDT 2010
Author: cstim
Date: 2010-03-19 13:50:36 -0400 (Fri, 19 Mar 2010)
New Revision: 18934
Trac: http://svn.gnucash.org/trac/changeset/18934
Modified:
gnucash/trunk/src/gnome-utils/gnc-main-window.c
Log:
Bug #610675: Re-apply r18918, and now with the account color.
Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c 2010-03-19 17:50:16 UTC (rev 18933)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c 2010-03-19 17:50:36 UTC (rev 18934)
@@ -1973,9 +1973,12 @@
gnc_plugin_page_set_page_color(page, color_string);
/* Update the notebook tab */
+ main_window_find_tab_event(window, page, &event_box);
if (gdk_color_parse(color_string, &tab_color))
{
+ gtk_widget_modify_bg(event_box, GTK_STATE_NORMAL, &tab_color);
+ gtk_widget_modify_bg(event_box, GTK_STATE_ACTIVE, &tab_color);
}
g_free(color_string);
LEAVE("done");
@@ -2505,10 +2508,11 @@
GncMainWindowPrivate *priv;
GtkWidget *tab_hbox;
GtkWidget *label, *entry, *event_box;
- const gchar *icon, *text;
+ const gchar *icon, *text, *color_string;
GtkWidget *image;
GList *tmp;
gint width;
+ GdkColor tab_color;
ENTER("window %p, page %p", window, page);
@@ -2593,6 +2597,14 @@
gtk_container_add(GTK_CONTAINER(event_box), tab_hbox);
+ color_string = gnc_plugin_page_get_page_color(page);
+ if (color_string == NULL) color_string = "";
+ if (gdk_color_parse(color_string, &tab_color))
+ {
+ gtk_widget_modify_bg(event_box, GTK_STATE_NORMAL, &tab_color);
+ gtk_widget_modify_bg(event_box, GTK_STATE_ACTIVE, &tab_color);
+ }
+
text = gnc_plugin_page_get_page_long_name(page);
if (text)
{
More information about the gnucash-changes
mailing list