r23678 - gnucash/branches/2.4/src/gnome-utils - Hide 'template' commodity type from the Security Editor Type combo list.

John Ralls jralls at code.gnucash.org
Fri Jan 10 18:13:56 EST 2014


Author: jralls
Date: 2014-01-10 18:13:56 -0500 (Fri, 10 Jan 2014)
New Revision: 23678
Trac: http://svn.gnucash.org/trac/changeset/23678

Modified:
   gnucash/branches/2.4/src/gnome-utils/dialog-commodity.c
Log:
Hide 'template' commodity type from the Security Editor Type combo list.

Modified: gnucash/branches/2.4/src/gnome-utils/dialog-commodity.c
===================================================================
--- gnucash/branches/2.4/src/gnome-utils/dialog-commodity.c	2014-01-10 12:14:08 UTC (rev 23677)
+++ gnucash/branches/2.4/src/gnome-utils/dialog-commodity.c	2014-01-10 23:13:56 UTC (rev 23678)
@@ -669,7 +669,9 @@
     {
         if (g_utf8_collate(node->data, GNC_COMMODITY_NS_LEGACY) == 0)
             continue;
-        gtk_combo_box_append_text(combo_box, node->data);
+	/* Hide the 'template' namespace */
+	if (g_utf8_collate(node->data, "template") != 0)
+	    gtk_combo_box_append_text(combo_box, node->data);
         if (init_string && (g_utf8_collate(node->data, init_string) == 0))
             match = current;
         current++;



More information about the gnucash-changes mailing list