@@ -1275,7 +1275,6 @@ if(0) { // GTK4
12751275 g_signal_connect (G_OBJECT (module -> arrow ), "button-press-event" ,
12761276 G_CALLBACK (_lib_plugin_arrow_button_press ), module );
12771277 dt_action_define (& module -> actions , NULL , NULL , module -> arrow , NULL );
1278- gtk_box_pack_start (GTK_BOX (header ), module -> arrow , FALSE, FALSE, 0 );
12791278
12801279 /* add module label */
12811280 GtkWidget * label = gtk_label_new ("" );
@@ -1292,7 +1291,6 @@ if(0) { // GTK4
12921291 g_object_set (G_OBJECT (label ), "halign" , GTK_ALIGN_START , "xalign" , 0.0 , (gchar * )0 );
12931292 gtk_widget_set_name (label , "lib-panel-label" );
12941293 dt_action_define (& module -> actions , NULL , NULL , label_evb , NULL );
1295- gtk_box_pack_start (GTK_BOX (header ), label_evb , FALSE, FALSE, 0 );
12961294
12971295 /* add preset button if module has implementation */
12981296 module -> presets_button = dtgtk_button_new (dtgtk_cairo_paint_presets , 0 , NULL );
@@ -1307,7 +1305,6 @@ if(0) { // GTK4
13071305 gtk_widget_set_sensitive (GTK_WIDGET (module -> presets_button ), FALSE);
13081306
13091307 dt_action_define (& module -> actions , NULL , NULL , module -> presets_button , NULL );
1310- gtk_box_pack_end (GTK_BOX (header ), module -> presets_button , FALSE, FALSE, 0 );
13111308
13121309 /* add reset button if module has implementation */
13131310 module -> reset_button = dtgtk_button_new (dtgtk_cairo_paint_reset , 0 , NULL );
@@ -1318,7 +1315,8 @@ if(0) { // GTK4
13181315 GINT_TO_POINTER (DT_ACTION_ELEMENT_RESET ));
13191316 if (!module -> gui_reset ) gtk_widget_set_sensitive (module -> reset_button , FALSE);
13201317 dt_action_define (& module -> actions , NULL , NULL , module -> reset_button , NULL );
1321- gtk_box_pack_end (GTK_BOX (header ), module -> reset_button , FALSE, FALSE, 0 );
1318+
1319+ dt_gui_box_add (header , module -> arrow , dt_gui_expand (label_evb ), module -> reset_button , module -> presets_button );
13221320
13231321 /* add button box - for module's specific action button */
13241322 if (module -> gui_tool_box )
0 commit comments