From 1d7dbd9bf8f68c93d84e6bcd38bc8b6b6be204ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Almada?= Date: Sat, 20 Jun 2015 22:16:26 -0300 Subject: [PATCH] cleanup reference https://github.com/conformal/gotk3/issues/50 --- gtkApplication.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/gtkApplication.go b/gtkApplication.go index 5f64a77..4ff6d1b 100644 --- a/gtkApplication.go +++ b/gtkApplication.go @@ -43,19 +43,10 @@ func (app gtkApplication) Run(client upnp.Client, keyMap, _ keyMap) (e error) { if e = app.builder.AddFromResource("/marcio/gocontroller/resources/main.ui"); e != nil { return } - obj, e := app.builder.GetObject("Window") - if e == nil { + if obj, e := app.builder.GetObject("Window"); e == nil { // try to load ui main window object if window, ok := obj.(*gtk.Window); ok { window.SetTitle("GoRemote") - // use GTK3 fancy HeaderBar :) - /* - titlebar, _ := gtk.HeaderBarNew() - titlebar.SetTitle("Go Controller") - titlebar.SetSubtitle(">>" + client.IP) - titlebar.SetShowCloseButton(true) - window.SetTitlebar(titlebar) - */ // link ui buttons manually // wrapper for builder.ConnectSignals(nil) is not ready in gotk3 yet // see https://github.com/conformal/gotk3/issues/50