ui/gtk/window.c

changeset 435
883a569cc9a3
parent 413
b8e41d42f400
--- a/ui/gtk/window.c	Sun Jan 05 10:14:52 2025 +0100
+++ b/ui/gtk/window.c	Sun Jan 05 10:30:39 2025 +0100
@@ -195,6 +195,14 @@
 #elif GTK_MAJOR_VERSION >= 4
     GtkWidget *content_box = ui_gtk_vbox_new(0);
     WINDOW_SET_CONTENT(obj->widget, vbox);
+    if(!simple) {
+        if(uic_get_menu_list()) {
+            GtkWidget *mb = ui_create_menubar(obj);
+            if(mb) {
+                BOX_ADD(vbox, mb);
+            }
+        }
+    }
     if(sidebar) {
         GtkWidget *paned = gtk_paned_new(GTK_ORIENTATION_HORIZONTAL);
         GtkWidget *sidebar_vbox = ui_gtk_vbox_new(0);

mercurial