[v3 linux] systray implementation

Linux requires a `gtk_menu_bar` for a gtk_window to display a menu.
For the `systray` a `gtk_menu` is needed instead.
This change creates the correct type of `impl` for the `Menu`
depending on how it is being used.
This commit is contained in:
Travis McLane
2023-09-28 14:50:38 -05:00
parent 71fc222059
commit efa67cb01c
6 changed files with 39 additions and 29 deletions
+1
View File
@@ -82,6 +82,7 @@ func (m *linuxApp) getApplicationMenu() pointer {
menu := globalApplication.ApplicationMenu
if menu != nil {
menu.impl = newMenuBarImpl(menu)
InvokeSync(func() {
menu.Update()
})