Commit d4918b70 authored by Olivier Fourdan's avatar Olivier Fourdan 🛠
Browse files

gedit-open-document-selector: Add max-content-height

This is an (intentional) behavior change in GtkScrolledWindow, without
this, the scrolled window can grow without limits and exceed the
supported size of a texture.
parent c65cd521
......@@ -1053,6 +1053,8 @@ on_treeview_allocate (GtkWidget *widget G_GNUC_UNUSED,
treeview_height = row_height * limit_capped;
gtk_scrolled_window_set_min_content_height (GTK_SCROLLED_WINDOW (selector->scrolled_window),
gtk_scrolled_window_set_max_content_height (GTK_SCROLLED_WINDOW (selector->scrolled_window),
gtk_widget_set_size_request (selector->placeholder_box, -1, treeview_height);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment