forked from AuroraMiddleware/gtk
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).
This commit is contained in:
parent
ff5972c4cd
commit
051dcde4bf
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user