macOS might have no GTK configuration, so forcing "only icons" for toolbar.

This commit is contained in:
Stanislav Nikitin 2016-11-26 09:35:59 +05:00
parent 3b3aae16b0
commit 7950ab5a1f
2 changed files with 8 additions and 0 deletions

View File

@ -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.

View File

@ -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.