treeviewcolumn: Show button if we're visible

Previously, we were happily working with a hidden button.
This commit is contained in:
Benjamin Otte 2013-01-08 14:55:41 +01:00
parent da100207b3
commit 9be7e3e2d8

View File

@ -859,6 +859,8 @@ gtk_tree_view_column_create_button (GtkTreeViewColumn *tree_column)
gtk_widget_push_composite_child ();
priv->button = gtk_button_new ();
if (priv->visible)
gtk_widget_show (priv->button);
gtk_widget_add_events (priv->button, GDK_POINTER_MOTION_MASK);
gtk_widget_pop_composite_child ();