diff options
Diffstat (limited to 'gtk/gtkhpaned.c')
-rw-r--r-- | gtk/gtkhpaned.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkhpaned.c b/gtk/gtkhpaned.c index d89e00827b..9ef2ff0952 100644 --- a/gtk/gtkhpaned.c +++ b/gtk/gtkhpaned.c @@ -149,6 +149,10 @@ gtk_hpaned_size_allocate (GtkWidget *widget, else paned->child1_size = 0; } + else + paned->child1_size = CLAMP (paned->child1_size, 0, + allocation->width - paned->gutter_size + - 2 * GTK_CONTAINER (paned)->border_width); /* Move the handle before the children so we don't get extra expose events */ |