[gtk/wip/otte/for-master: 5/8] paned: Always query at least min size
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/for-master: 5/8] paned: Always query at least min size
- Date: Sat, 20 Nov 2021 05:04:22 +0000 (UTC)
commit 244ddea0ea84f9f6b4306c2981f897fa374c2af5
Author: Benjamin Otte <otte redhat com>
Date: Sat Nov 20 05:56:14 2021 +0100
paned: Always query at least min size
For shrinking children, we would not make sure of this and just throw
the current size at them.
gtk/gtkpaned.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c
index e4d8ff8124..aebfd91ac7 100644
--- a/gtk/gtkpaned.c
+++ b/gtk/gtkpaned.c
@@ -1184,6 +1184,11 @@ gtk_paned_get_preferred_size_for_opposite_orientation (GtkWidget *widget,
NULL, NULL, &for_start_child);
for_end_child = size - for_start_child - handle_size;
+
+ if (paned->shrink_start_child)
+ for_start_child = MAX (start_child_req, for_start_child);
+ if (paned->shrink_end_child)
+ for_end_child = MAX (end_child_req, for_end_child);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]