r16417 - gnucash/branches/register-rewrite/src/gnome-utils - Add a missing sentinel and add a type-safety-checking macro.

Chris Shoemaker chris at cvs.gnucash.org
Sat Aug 11 17:17:43 EDT 2007


Author: chris
Date: 2007-08-11 17:10:34 -0400 (Sat, 11 Aug 2007)
New Revision: 16417
Trac: http://svn.gnucash.org/trac/changeset/16417

Modified:
   gnucash/branches/register-rewrite/src/gnome-utils/gnc-tree-view-transaction.c
Log:
Add a missing sentinel and add a type-safety-checking macro.

Modified: gnucash/branches/register-rewrite/src/gnome-utils/gnc-tree-view-transaction.c
===================================================================
--- gnucash/branches/register-rewrite/src/gnome-utils/gnc-tree-view-transaction.c	2007-08-11 20:59:20 UTC (rev 16416)
+++ gnucash/branches/register-rewrite/src/gnome-utils/gnc-tree-view-transaction.c	2007-08-11 21:10:34 UTC (rev 16417)
@@ -1399,10 +1399,10 @@
 		== GPOINTER_TO_INT(g_object_get_data(G_OBJECT(cr), "model_column")))
 			//&& GTK_IS_ENTRY(editable))
 	{
-		gtk_entry_completion_set_model(completion, list);
+            gtk_entry_completion_set_model(completion, GTK_TREE_MODEL(list));
 		//gtk_entry_completion_set_model(completion, 
 		//	GTK_TREE_MODEL(get_trans_model_from_view(tv)));
-		g_object_set(G_OBJECT(completion), "text-column", 0);
+            g_object_set(G_OBJECT(completion), "text-column", 0, NULL);
 		//g_object_set(G_OBJECT(completion), "text-column", 
 		//	GPOINTER_TO_INT(g_object_get_data(G_OBJECT(cr), "model_column")));
 		gtk_entry_completion_set_inline_completion(completion, TRUE);



More information about the gnucash-changes mailing list