From 9be7e3e2d82396167dd606a77794c412deca4180 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 8 Jan 2013 14:55:41 +0100 Subject: [PATCH] treeviewcolumn: Show button if we're visible Previously, we were happily working with a hidden button. --- gtk/gtktreeviewcolumn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index cde429f91a..7ce19d33f9 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -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 ();