No subject
Thu Feb 18 01:58:27 EST 2010
Modified: gnucash/trunk/src/gnome-utils/dialog-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-account.c 2010-03-30 10:20:14 UTC (rev 18976)
+++ gnucash/trunk/src/gnome-utils/dialog-account.c 2010-03-30 10:56:57 UTC (rev 18977)
@@ -366,7 +366,12 @@
xaccAccountSetDescription (account, string);
gtk_color_button_get_color(GTK_COLOR_BUTTON(aw->color_entry_button), &color );
+#ifdef HAVE_GTK_2_12
string = gdk_color_to_string(&color);
+#else
+ /* gdk_color_to_string requires gtk >= 2.12 */
+ string = g_strdup_printf("#%04X%04X%04X", color.red, color.green, color.blue);
+#endif
old_string = xaccAccountGetColor (account);
if (safe_strcmp (string, old_string) != 0)
xaccAccountSetColor (account, string);
More information about the gnucash-changes
mailing list