[gedit] gedit-open-document-selector: Add max-content-height
- From: Olivier Fourdan <ofourdan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] gedit-open-document-selector: Add max-content-height
- Date: Mon, 29 Aug 2016 09:09:54 +0000 (UTC)
commit d4918b70e76604c77abf43f8b9f708e632ca675f
Author: Olivier Fourdan <ofourdan redhat com>
Date: Mon Aug 29 10:08:43 2016 +0200
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.
https://bugzilla.gnome.org/show_bug.cgi?id=770430
gedit/gedit-open-document-selector.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-open-document-selector.c b/gedit/gedit-open-document-selector.c
index 1221d33..77075cd 100644
--- a/gedit/gedit-open-document-selector.c
+++ b/gedit/gedit-open-document-selector.c
@@ -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),
treeview_height);
+ gtk_scrolled_window_set_max_content_height (GTK_SCROLLED_WINDOW (selector->scrolled_window),
+ treeview_height);
gtk_widget_set_size_request (selector->placeholder_box, -1, treeview_height);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]