From 6495e9073704ce0658d63a6692b810f7e0807a8c Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Mon, 21 Nov 2016 03:32:22 +0500 Subject: [PATCH] gdk_threads are deprecated, as well as glib_threads. --- ui/mainwindow_init.go | 6 ------ 1 file changed, 6 deletions(-) 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.