From 051dcde4bf8b1852bfbd903a31be3f03d2ed3339 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Sat, 23 Oct 2010 22:50:25 +0900 Subject: [PATCH] Fixed fallout from GtkScrollable patches. The scrollable patch removed set_scroll_adjustments (NULL, NULL) from gtk_tree_view_init() which ensured the treeview would have adjustments at all times, this patch adds set_v/hadjustment (NULL) to _init to ensure the same thing (without it, there are crashes when trying to access the adjustments notably from set_headers_visible() in gedit). --- gtk/gtktreeview.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 412f8f3d94..e849bb4141 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -1335,6 +1335,9 @@ gtk_tree_view_init (GtkTreeView *tree_view) tree_view->priv->event_last_x = -10000; tree_view->priv->event_last_y = -10000; + + gtk_tree_view_set_vadjustment (tree_view, NULL); + gtk_tree_view_set_hadjustment (tree_view, NULL); }