debug-manager: Fix accessing of invalid tree models.
commit61b7f4916d709c6264aef5967796abc6aa0b4895
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>
Sun, 18 Nov 2012 19:08:21 +0000 (18 20:08 +0100)
committerSébastien Granjoux <seb.sfo@free.fr>
Mon, 19 Nov 2012 16:36:35 +0000 (19 17:36 +0100)
tree18fcdff6f03e318e148af12c3aa978dd518cccbb
parentdb14699e87809d35eb728f49d2aa53db4dffe9d1
debug-manager: Fix accessing of invalid tree models.

We previously stored the DebugTree's model in the gTreeList but the model could be changed
with debug_tree_set_model() which would make the model stored in the gTreeList invalid. Fix
this by storing the DebugTree in the gTreeList instead. This fixes these two warnings.

(anjuta:31701): GLib-GObject-WARNING **: invalid uninstantiatable type `<invalid>' in cast to `GtkTreeModel'

(anjuta:31701): Gtk-CRITICAL **: gtk_tree_model_iter_children: assertion `GTK_IS_TREE_MODEL (tree_model)' failed

https://bugzilla.gnome.org/show_bug.cgi?id=688600
plugins/debug-manager/debug_tree.c