mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug #623842 - Reseting of Color Tabs to default color wrong.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19349 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
3270533024
commit
e5b47e0eda
@ -372,6 +372,9 @@ gnc_ui_to_account(AccountWindow *aw)
|
|||||||
/* gdk_color_to_string requires gtk >= 2.12 */
|
/* gdk_color_to_string requires gtk >= 2.12 */
|
||||||
string = g_strdup_printf("#%04X%04X%04X", color.red, color.green, color.blue);
|
string = g_strdup_printf("#%04X%04X%04X", color.red, color.green, color.blue);
|
||||||
#endif
|
#endif
|
||||||
|
if (safe_strcmp (string, DEFAULT_COLOR) == 0)
|
||||||
|
string = "Not Set";
|
||||||
|
|
||||||
old_string = xaccAccountGetColor (account);
|
old_string = xaccAccountGetColor (account);
|
||||||
if (safe_strcmp (string, old_string) != 0)
|
if (safe_strcmp (string, old_string) != 0)
|
||||||
xaccAccountSetColor (account, string);
|
xaccAccountSetColor (account, string);
|
||||||
|
@ -1992,6 +1992,11 @@ main_window_update_page_color (GncPluginPage *page,
|
|||||||
gtk_widget_modify_bg(event_box, GTK_STATE_NORMAL, &tab_color);
|
gtk_widget_modify_bg(event_box, GTK_STATE_NORMAL, &tab_color);
|
||||||
gtk_widget_modify_bg(event_box, GTK_STATE_ACTIVE, &tab_color);
|
gtk_widget_modify_bg(event_box, GTK_STATE_ACTIVE, &tab_color);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gtk_widget_modify_bg(event_box, GTK_STATE_NORMAL, NULL);
|
||||||
|
gtk_widget_modify_bg(event_box, GTK_STATE_ACTIVE, NULL);
|
||||||
|
}
|
||||||
g_free(color_string);
|
g_free(color_string);
|
||||||
LEAVE("done");
|
LEAVE("done");
|
||||||
}
|
}
|
||||||
@ -2604,6 +2609,11 @@ gnc_main_window_open_page (GncMainWindow *window,
|
|||||||
gtk_widget_modify_bg(event_box, GTK_STATE_NORMAL, &tab_color);
|
gtk_widget_modify_bg(event_box, GTK_STATE_NORMAL, &tab_color);
|
||||||
gtk_widget_modify_bg(event_box, GTK_STATE_ACTIVE, &tab_color);
|
gtk_widget_modify_bg(event_box, GTK_STATE_ACTIVE, &tab_color);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gtk_widget_modify_bg(event_box, GTK_STATE_NORMAL, NULL);
|
||||||
|
gtk_widget_modify_bg(event_box, GTK_STATE_ACTIVE, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
text = gnc_plugin_page_get_page_long_name(page);
|
text = gnc_plugin_page_get_page_long_name(page);
|
||||||
if (text)
|
if (text)
|
||||||
|
Loading…
Reference in New Issue
Block a user