macOS might have no GTK configuration, so forcing "only icons" for toolbar.
This commit is contained in:
parent
3b3aae16b0
commit
7950ab5a1f
@ -156,6 +156,10 @@ func (m *MainWindow) Initialize() {
|
|||||||
|
|
||||||
m.window.Add(m.vbox)
|
m.window.Add(m.vbox)
|
||||||
|
|
||||||
|
if runtime.GOOS == "darwin" {
|
||||||
|
m.initializeMacAfter()
|
||||||
|
}
|
||||||
|
|
||||||
m.window.ShowAll()
|
m.window.ShowAll()
|
||||||
|
|
||||||
// Launch events.
|
// Launch events.
|
||||||
|
@ -21,6 +21,10 @@ func (m *MainWindow) initializeMac() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (m *MainWindow) initializeMacAfter() {
|
||||||
|
m.toolbar.SetStyle(gtk.TOOLBAR_ICONS)
|
||||||
|
}
|
||||||
|
|
||||||
func (m *MainWindow) initializeMacMenu() {
|
func (m *MainWindow) initializeMacMenu() {
|
||||||
// This is a placeholder, in future we will use native mac menu.
|
// This is a placeholder, in future we will use native mac menu.
|
||||||
// For now it launches default menu initialization.
|
// For now it launches default menu initialization.
|
||||||
|
Reference in New Issue
Block a user