ui/gtk/window.c

changeset 101
7b3a3130be44
parent 100
d2bd73d28ff1
--- a/ui/gtk/window.c	Thu Dec 12 20:01:43 2024 +0100
+++ b/ui/gtk/window.c	Mon Jan 06 22:22:55 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