From 4aa1f2446130791d751b2ad6bd247cc10474fa0e Mon Sep 17 00:00:00 2001 From: JFronny Date: Sat, 21 Oct 2023 17:50:19 +0200 Subject: [PATCH] fix: apparently the previous fix worked during testing but broke after the merge. Somehow. --- .../main/kotlin/io/gitlab/jfronny/inceptum/gtk/GtkMenubar.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/GtkMenubar.kt b/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/GtkMenubar.kt index a0103b2..bd34fd5 100644 --- a/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/GtkMenubar.kt +++ b/launcher-gtk/src/main/kotlin/io/gitlab/jfronny/inceptum/gtk/GtkMenubar.kt @@ -35,7 +35,7 @@ object GtkMenubar { var launchMenu: MenuBuilder? = null fun create(app: Application) { - val menu = MenuBuilder(app) + val menu = MenuBuilder(app, Menu()) // this should be MenuBuilder(app), but that breaks this val file = menu.submenu("file") newMenu = file.submenu("new") generateNewMenu(app) @@ -64,7 +64,7 @@ object GtkMenubar { file.button("exit") { app.quit() } launchMenu = menu.submenu("launch") generateLaunchMenu(app) - accountsMenu = MenuBuilder(app, Menu(), "account") // this should ideally be menu.submenu("account"), but that causes a segfault + accountsMenu = menu.submenu("account") generateAccountsMenu(app) val help = menu.submenu("help") help.button("about") { AboutWindow.createAndShow() }