mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
widgets: Improve spacing between toolbox widgets
The default value of the number of children in a GtkFlowBox row is 7. Since we only have 3 widgets in the toolbox area, this caused them to be scrunched over to the left. This patch improves the spacing to match the widget count.
This commit is contained in:
parent
aac8656039
commit
47224ba1a6
1 changed files with 2 additions and 0 deletions
|
@ -278,6 +278,8 @@ gimp_toolbox_constructed (GObject *object)
|
||||||
toolbox->p->area_box = gtk_flow_box_new ();
|
toolbox->p->area_box = gtk_flow_box_new ();
|
||||||
gtk_flow_box_set_selection_mode (GTK_FLOW_BOX (toolbox->p->area_box),
|
gtk_flow_box_set_selection_mode (GTK_FLOW_BOX (toolbox->p->area_box),
|
||||||
GTK_SELECTION_NONE);
|
GTK_SELECTION_NONE);
|
||||||
|
gtk_flow_box_set_max_children_per_line (GTK_FLOW_BOX (toolbox->p->area_box),
|
||||||
|
3);
|
||||||
gtk_box_pack_start (GTK_BOX (toolbox->p->vbox), toolbox->p->area_box,
|
gtk_box_pack_start (GTK_BOX (toolbox->p->vbox), toolbox->p->area_box,
|
||||||
FALSE, FALSE, 0);
|
FALSE, FALSE, 0);
|
||||||
gtk_widget_set_visible (toolbox->p->area_box, TRUE);
|
gtk_widget_set_visible (toolbox->p->area_box, TRUE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue