25 lines
474 B
Go
25 lines
474 B
Go
package ui
|
|
|
|
import (
|
|
// stdlib
|
|
"os"
|
|
"path/filepath"
|
|
|
|
// other
|
|
"github.com/mattn/go-gtk/gtk"
|
|
"github.com/couchbase/goutils/platform"
|
|
)
|
|
|
|
func (m *MainWindow) closeWin() {
|
|
platform.HideConsole(false)
|
|
}
|
|
|
|
func (m *MainWindow) initializeWin() {
|
|
platform.HideConsole(true)
|
|
|
|
dir, _ := filepath.Abs(filepath.Dir(os.Args[0]))
|
|
|
|
// ToDo: theming support and theme seletion in settings.
|
|
gtk.RCParse(dir + "/themes/MS-Windows/gtk-2.0/gtkrc")
|
|
}
|