Skip to content

Commit 4ef2eb3

Browse files
author
David Hampton
committed
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. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12335 57a11ea4-9604-0410-9ed3-97b8803252fd
1 parent 302accd commit 4ef2eb3

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2006-01-12 David Hampton <[email protected]>
2+
3+
* src/gnome-utils/gnc-tree-view-account.c: Remove the unnecessary
4+
explicit removal of the tree model and let the core GtkTreeView
5+
code do its thing. Prevents a weird crash when canceling the
6+
transfer code.
7+
18
2006-01-12 Derek Atkins <[email protected]>
29

310
* configure.in: add --enable-qof so build defaults to internal qof.

src/gnome-utils/gnc-tree-view-account.c

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ static QofLogModule log_module = GNC_MOD_GUI;
5757
static void gnc_tree_view_account_class_init (GncTreeViewAccountClass *klass);
5858
static void gnc_tree_view_account_init (GncTreeViewAccount *view);
5959
static void gnc_tree_view_account_finalize (GObject *object);
60-
static void gnc_tree_view_account_dispose (GObject *object);
6160

6261
static gboolean gnc_tree_view_account_filter_helper (GtkTreeModel *model,
6362
GtkTreeIter *iter,
@@ -117,7 +116,6 @@ gnc_tree_view_account_class_init (GncTreeViewAccountClass *klass)
117116
/* GObject signals */
118117
o_class = G_OBJECT_CLASS (klass);
119118
o_class->finalize = gnc_tree_view_account_finalize;
120-
o_class->dispose = gnc_tree_view_account_dispose;
121119

122120
g_type_class_add_private(klass, sizeof(GncTreeViewAccountPrivate));
123121
}
@@ -171,23 +169,6 @@ gnc_tree_view_account_finalize (GObject *object)
171169
LEAVE(" ");
172170
}
173171

174-
static void
175-
gnc_tree_view_account_dispose (GObject *object)
176-
{
177-
GncTreeViewAccount *view;
178-
179-
ENTER("view %p", object);
180-
g_return_if_fail (object != NULL);
181-
g_return_if_fail (GNC_IS_TREE_VIEW_ACCOUNT (object));
182-
183-
view = GNC_TREE_VIEW_ACCOUNT (object);
184-
gnc_tree_view_set_model(GNC_TREE_VIEW(view), NULL);
185-
186-
if (G_OBJECT_CLASS (parent_class)->dispose)
187-
(* G_OBJECT_CLASS (parent_class)->dispose) (object);
188-
LEAVE(" ");
189-
}
190-
191172

192173
/************************************************************
193174
* Callbacks *

0 commit comments

Comments
 (0)