]> Pileus Git - ~andy/gtk/commit
treeview: fix a critical warning
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 8 Mar 2013 22:56:08 +0000 (17:56 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 9 Mar 2013 01:20:28 +0000 (20:20 -0500)
commitfd51c8f5e9d6fb68c8e81b9b1e2ab80931f963f0
tree3f42f4bdebf3b5836fdb57209bbf8f2b360e2d33
parent15ddeac195864634aa18896c84718f663ab2b192
treeview: fix a critical warning

gtk_tree_view_column_unset_tree_view() resets column->priv->tree_view to
NULL.
The function is called when a column is removed, but later from the same
function we would call _gtk_tree_view_column_unrealize_button(), which
expects column->priv->tree_view to be != NULL, causing these critical
warnings

Gtk-CRITICAL **: gtk_widget_unregister_window: assertion
`GTK_IS_WIDGET (widget)' failed

This commit moves the call to unset the tree view after the button is
unrealized.

https://bugzilla.gnome.org/show_bug.cgi?id=695473
gtk/gtktreeview.c