From 2aee50231dc2921df153016bd58dfdd7cc3f1932 Mon Sep 17 00:00:00 2001 From: Ordissimo Date: Sat, 26 Oct 2024 02:04:44 +0200 Subject: [PATCH] Fix the porting of functions to gtk4 --- libgtk/utils-gtk.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libgtk/utils-gtk.c b/libgtk/utils-gtk.c index 045a8c3..c173bc1 100644 --- a/libgtk/utils-gtk.c +++ b/libgtk/utils-gtk.c @@ -52,6 +52,8 @@ gtk_box_pack_start(GtkBox *box, guint padding) { gtk_box_append(box, child); + gtk_widget_set_vexpand(GTK_WIDGET(box), expand); + gtk_widget_set_hexpand(GTK_WIDGET(box), fill); gtk_container_set_border_width (GTK_WIDGET(box), padding); } @@ -63,6 +65,8 @@ gtk_box_pack_end (GtkBox *box, guint padding) { gtk_box_prepend(box, child); + gtk_widget_set_vexpand(GTK_WIDGET(box), expand); + gtk_widget_set_hexpand(GTK_WIDGET(box), fill); gtk_container_set_border_width (GTK_WIDGET(box), padding); }