[Gnucash-changes] r12335 - gnucash/trunk - Remove the unnecessary explicit removal of the tree model and let the

David Hampton hampton at cvs.gnucash.org
Thu Jan 12 19:34:56 EST 2006


Author: hampton
Date: 2006-01-12 19:34:55 -0500 (Thu, 12 Jan 2006)
New Revision: 12335
Trac: http://svn.gnucash.org/trac/changeset/12335

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c
Log:
Remove the unnecessary explicit removal of the tree model and let the
core GtkTreeView code do its thing.  Prevents a weird crash when
canceling the transfer code.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-01-12 23:40:45 UTC (rev 12334)
+++ gnucash/trunk/ChangeLog	2006-01-13 00:34:55 UTC (rev 12335)
@@ -1,3 +1,10 @@
+2006-01-12  David Hampton  <hampton at employees.org>
+
+	* src/gnome-utils/gnc-tree-view-account.c: Remove the unnecessary
+	explicit removal of the tree model and let the core GtkTreeView
+	code do its thing.  Prevents a weird crash when canceling the
+	transfer code.
+
 2006-01-12  Derek Atkins  <derek at ihtfp.com>
 
 	* configure.in:  add --enable-qof so build defaults to internal qof.

Modified: gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c	2006-01-12 23:40:45 UTC (rev 12334)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c	2006-01-13 00:34:55 UTC (rev 12335)
@@ -57,7 +57,6 @@
 static void gnc_tree_view_account_class_init (GncTreeViewAccountClass *klass);
 static void gnc_tree_view_account_init (GncTreeViewAccount *view);
 static void gnc_tree_view_account_finalize (GObject *object);
-static void gnc_tree_view_account_dispose (GObject *object);
 
 static gboolean gnc_tree_view_account_filter_helper (GtkTreeModel *model,
                                                      GtkTreeIter *iter,
@@ -117,7 +116,6 @@
 	/* GObject signals */
 	o_class = G_OBJECT_CLASS (klass);
 	o_class->finalize = gnc_tree_view_account_finalize;
-        o_class->dispose = gnc_tree_view_account_dispose;
 
 	g_type_class_add_private(klass, sizeof(GncTreeViewAccountPrivate));
 }
@@ -171,24 +169,7 @@
   LEAVE(" ");
 }
 
-static void
-gnc_tree_view_account_dispose (GObject *object)
-{
-  GncTreeViewAccount *view;
 
-  ENTER("view %p", object);
-  g_return_if_fail (object != NULL);
-  g_return_if_fail (GNC_IS_TREE_VIEW_ACCOUNT (object));
-
-  view = GNC_TREE_VIEW_ACCOUNT (object);
-  gnc_tree_view_set_model(GNC_TREE_VIEW(view), NULL);
-
-  if (G_OBJECT_CLASS (parent_class)->dispose)
-    (* G_OBJECT_CLASS (parent_class)->dispose) (object);
-  LEAVE(" ");
-}
-
-
 /************************************************************
  *                        Callbacks                         *
  ************************************************************/



More information about the gnucash-changes mailing list