diff options
author | Kristian Rietveld <kris@gtk.org> | 2010-12-23 18:19:11 +0100 |
---|---|---|
committer | Kristian Rietveld <kris@gtk.org> | 2010-12-23 18:19:56 +0100 |
commit | 31536736ea0fe25056689b9b7ccd914910281b37 (patch) | |
tree | 3a5dd36cf513ac712640246eb130f98cbefa2a92 /gtk/gtktreeviewcolumn.c | |
parent | 26173c786449b74bd6bdd854cd973c37a84e3e25 (diff) | |
download | gtk+-31536736ea0fe25056689b9b7ccd914910281b37.tar.gz |
Hide GtkTreeViewColumn buttons when header_window is not visible
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 0147a4a8ca..43f592183f 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -987,7 +987,9 @@ gtk_tree_view_column_update_button (GtkTreeViewColumn *tree_column) { if (priv->visible) { - gtk_widget_show_now (priv->button); + if (gdk_window_is_visible (_gtk_tree_view_get_header_window (GTK_TREE_VIEW (priv->tree_view)))) + gtk_widget_show_now (priv->button); + if (priv->window) { if (priv->resizable) @@ -1327,9 +1329,6 @@ _gtk_tree_view_column_realize_button (GtkTreeViewColumn *column) g_return_if_fail (_gtk_tree_view_get_header_window (tree_view) != NULL); gtk_widget_set_parent_window (priv->button, _gtk_tree_view_get_header_window (tree_view)); - if (priv->visible) - gtk_widget_show (priv->button); - attr.window_type = GDK_WINDOW_CHILD; attr.wclass = GDK_INPUT_ONLY; attr.visual = gtk_widget_get_visual (GTK_WIDGET (tree_view)); |