Changed order for applying OS-specific workarounds.

This commit is contained in:
Stanislav Nikitin 2016-10-11 00:14:37 +05:00
parent 3537b05dce
commit 35097c3805

View File

@ -36,6 +36,14 @@ func (m *MainWindow) Initialize() {
m.window.Connect("configure-event", m.checkPositionAndSize)
// Additional OS-specific initialization.
if runtime.GOOS == "windows" {
m.initializeWin()
}
if runtime.GOOS == "darwin" {
m.initializeMac()
}
// Restoring window position.
var win_pos_x_str string = "0"
var win_pos_y_str string = "0"
@ -145,14 +153,6 @@ func (m *MainWindow) Initialize() {
m.window.Add(m.vbox)
// Additional Windows-related initialization.
if runtime.GOOS == "windows" {
m.initializeWin()
}
if runtime.GOOS == "darwin" {
m.initializeMac()
}
m.window.ShowAll()
// Launch events.