gdk_threads are deprecated, as well as glib_threads.
This commit is contained in:
parent
3e89df1009
commit
6495e90737
@ -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.
|
||||
|
Reference in New Issue
Block a user