diff --git a/ui/mainwindow_init.go b/ui/mainwindow_init.go index 1d547e9..4472943 100644 --- a/ui/mainwindow_init.go +++ b/ui/mainwindow_init.go @@ -11,7 +11,6 @@ import ( "github.com/pztrn/urtrator/common" // Other - "github.com/mattn/go-gtk/gdk" "github.com/mattn/go-gtk/gdkpixbuf" "github.com/mattn/go-gtk/glib" "github.com/mattn/go-gtk/gtk" @@ -20,10 +19,6 @@ import ( // Main window initialization. func (m *MainWindow) Initialize() { - glib.ThreadInit(nil) - gdk.ThreadsInit() - gdk.ThreadsEnter() - gtk.Init(nil) m.initializeStorages() @@ -171,7 +166,6 @@ func (m *MainWindow) Initialize() { ctx.Eventer.LaunchEvent("setToolbarLabelText", map[string]string{"text": "URTrator is ready."}) gtk.Main() - gdk.ThreadsLeave() } // Events initialization.