[gtk] treeview: Use gtk_widget_set_overflow()



commit 3d05e6777a46ff6cd3f5bece11798b3aa7236d82
Author: Benjamin Otte <otte redhat com>
Date:   Fri Feb 8 18:16:35 2019 +0100

    treeview: Use gtk_widget_set_overflow()
    
    We need to clip again so we don't overdraw the headers, but setting
    overflow does the right thing with header widgetry.

 gtk/gtktreeview.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 3c5acc5a8c..bf0a665c33 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -1654,6 +1654,7 @@ gtk_tree_view_init (GtkTreeView *tree_view)
   priv = tree_view->priv = gtk_tree_view_get_instance_private (tree_view);
 
   gtk_widget_set_can_focus (GTK_WIDGET (tree_view), TRUE);
+  gtk_widget_set_overflow (GTK_WIDGET (tree_view), GTK_OVERFLOW_HIDDEN);
 
   priv->show_expanders = TRUE;
   priv->draw_keyfocus = TRUE;


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