gdk_threads are deprecated, as well as glib_threads.

This commit is contained in:
Stanislav Nikitin 2016-11-21 03:32:22 +05:00
parent 3e89df1009
commit 6495e90737

View File

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