diff options
author | Benjamin Otte <otte@redhat.com> | 2019-03-12 02:14:48 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-03-19 08:48:50 +0100 |
commit | 8fb797866dbc3316f5f9a47839b40912a8524321 (patch) | |
tree | 78d51d00517eea93e2005f6a09b650738f4c08b9 /gtk | |
parent | 96a677e5ca1bce8ce8178d300100cc8553d14bac (diff) | |
download | gtk+-8fb797866dbc3316f5f9a47839b40912a8524321.tar.gz |
paned: hide the handle widget when <2 children are visible
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkpaned.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index ba97855c7e..cf2e39a26e 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -1297,6 +1297,8 @@ gtk_paned_size_allocate (GtkWidget *widget, child2_allocation.height = child2_height; } + gtk_widget_set_child_visible (priv->handle_widget, TRUE); + gtk_widget_size_allocate (priv->handle_widget, &handle_allocation, -1); gtk_widget_size_allocate (priv->child1, &child1_allocation, -1); gtk_widget_size_allocate (priv->child2, &child2_allocation, -1); @@ -1318,6 +1320,8 @@ gtk_paned_size_allocate (GtkWidget *widget, &(GtkAllocation) {0, 0, width, height}, -1); } + + gtk_widget_set_child_visible (priv->handle_widget, FALSE); } } |