mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
paned: hide the handle widget when <2 children are visible
This commit is contained in:
parent
96a677e5ca
commit
8fb797866d
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user