[gtk+] treeviewcolumn: Show button if we're visible



commit 9be7e3e2d82396167dd606a77794c412deca4180
Author: Benjamin Otte <otte redhat com>
Date:   Tue Jan 8 14:55:41 2013 +0100

    treeviewcolumn: Show button if we're visible
    
    Previously, we were happily working with a hidden button.

 gtk/gtktreeviewcolumn.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index cde429f..7ce19d3 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 ();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]