[Gnucash-changes] r13787 - gnucash/trunk - Fix to compile on systems with glib < 2.9.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Apr 15 14:10:23 EDT 2006


Author: andi5
Date: 2006-04-15 14:10:22 -0400 (Sat, 15 Apr 2006)
New Revision: 13787
Trac: http://svn.gnucash.org/trac/changeset/13787

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome-utils/druid-gnc-xml-import.c
Log:
Fix to compile on systems with glib < 2.9.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-04-15 16:40:03 UTC (rev 13786)
+++ gnucash/trunk/ChangeLog	2006-04-15 18:10:22 UTC (rev 13787)
@@ -1,3 +1,8 @@
+2006-04-15  Andreas Köhler  <andi5.py at gmx.net>
+
+	* src/gnome-utils/druid-gnc-xml-import.c: Fix to compile on
+	  systems with glib < 2.9.
+
 2006-04-15  David Hampton  <hampton at employees.org>
 
 	* src/engine/Account.c:

Modified: gnucash/trunk/src/gnome-utils/druid-gnc-xml-import.c
===================================================================
--- gnucash/trunk/src/gnome-utils/druid-gnc-xml-import.c	2006-04-15 16:40:03 UTC (rev 13786)
+++ gnucash/trunk/src/gnome-utils/druid-gnc-xml-import.c	2006-04-15 18:10:22 UTC (rev 13787)
@@ -512,8 +512,7 @@
   for (iter = g_list_last (conv_list); iter; iter = iter->prev)
     amb->conv_list = g_list_prepend (amb->conv_list, conv_copy (iter->data));
 
-  data->ambiguous_list = g_list_insert_sorted_with_data (
-    data->ambiguous_list, amb, (GCompareDataFunc) ambiguous_cmp, data);
+  data->ambiguous_list = g_list_prepend (data->ambiguous_list, amb);
 }
 
 static void
@@ -625,6 +624,8 @@
     /* sort ambiguous words */
     g_hash_table_foreach (data->ambiguous_ht, (GHFunc)ambiguous_list_insert,
                           data);
+    data->ambiguous_list = g_list_sort_with_data (
+      data->ambiguous_list, (GCompareDataFunc) ambiguous_cmp, data);
   }
 }
 



More information about the gnucash-changes mailing list