r22011 - gnucash/trunk/src/gnome - Fix a GtkWarning in the Account Hierarchy Assistant which occurs if the
Geert Janssens
gjanssens at code.gnucash.org
Sun Feb 12 15:28:51 EST 2012
Author: gjanssens
Date: 2012-02-12 15:28:50 -0500 (Sun, 12 Feb 2012)
New Revision: 22011
Trac: http://svn.gnucash.org/trac/changeset/22011
Modified:
gnucash/trunk/src/gnome/assistant-hierarchy.c
Log:
Fix a GtkWarning in the Account Hierarchy Assistant which occurs if the
Example Account file doesn't contain a long description.
Modified: gnucash/trunk/src/gnome/assistant-hierarchy.c
===================================================================
--- gnucash/trunk/src/gnome/assistant-hierarchy.c 2012-02-12 18:43:13 UTC (rev 22010)
+++ gnucash/trunk/src/gnome/assistant-hierarchy.c 2012-02-12 20:28:50 UTC (rev 22011)
@@ -500,7 +500,9 @@
g_free(text2);
g_free(text);
buffer = gtk_text_view_get_buffer(data->category_description);
- gtk_text_buffer_set_text(buffer, gea->long_description, -1);
+ gtk_text_buffer_set_text(buffer, gea->long_description ?
+ gea->long_description :
+ _("No description provided."), -1);
tree_view = gnc_tree_view_account_new_with_root (gea->root, FALSE);
/* Override the normal fixed (user settable) sizing */
More information about the gnucash-changes
mailing list