ui/gtk/window.c

changeset 51
e324291ca9f8
parent 46
31bc86844659
child 56
294d5515583a
--- a/ui/gtk/window.c	Sun Oct 06 18:43:06 2024 +0200
+++ b/ui/gtk/window.c	Sun Oct 20 21:24:13 2024 +0200
@@ -122,6 +122,7 @@
 
     GtkWidget *headerbar = adw_header_bar_new();
     adw_toolbar_view_add_top_bar(ADW_TOOLBAR_VIEW(toolbar_view), headerbar);
+    g_object_set_data(G_OBJECT(obj->widget), "ui_headerbar", headerbar);
     
     if(!simple) {
         ui_fill_headerbar(obj, headerbar);
@@ -167,7 +168,7 @@
     obj->container = ui_box_container(obj, content_box);
     */
     GtkWidget *content_box = ui_gtk_vbox_new(0);
-    BOX_ADD(GTK_BOX(vbox), content_box);
+    BOX_ADD_EXPAND(GTK_BOX(vbox), content_box);
     obj->container = ui_box_container(obj, content_box, UI_CONTAINER_VBOX);
     
     nwindows++;

mercurial