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:
Alx Sa 2025-03-23 14:37:45 +00:00
parent aac8656039
commit 47224ba1a6

View file

@ -278,6 +278,8 @@ gimp_toolbox_constructed (GObject *object)
toolbox->p->area_box = gtk_flow_box_new ();
gtk_flow_box_set_selection_mode (GTK_FLOW_BOX (toolbox->p->area_box),
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,
FALSE, FALSE, 0);
gtk_widget_set_visible (toolbox->p->area_box, TRUE);