# HG changeset patch # User Olaf Wintermann # Date 1727020473 -7200 # Node ID dc8b504604f4eb10810ca486aeff511a1f6ba5e5 # Parent b00cbbfeec7ac6466d5ebf25933471e48f01cecb fix gtk3/4 grid hexpand/vexpand setting diff -r b00cbbfeec7a -r dc8b504604f4 ui/gtk/container.c --- a/ui/gtk/container.c Sun Sep 22 16:39:10 2024 +0200 +++ b/ui/gtk/container.c Sun Sep 22 17:54:33 2024 +0200 @@ -150,12 +150,8 @@ vexpand = ct->layout.vexpand; } - if(hexpand) { - gtk_widget_set_hexpand(widget, TRUE); - } - if(vexpand) { - gtk_widget_set_vexpand(widget, TRUE); - } + gtk_widget_set_hexpand(widget, hexpand); + gtk_widget_set_vexpand(widget, vexpand); int colspan = ct->layout.colspan > 0 ? ct->layout.colspan : 1; int rowspan = ct->layout.rowspan > 0 ? ct->layout.rowspan : 1;