Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
marcioAlmada committed Jun 21, 2015
1 parent 159d131 commit 1d7dbd9
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions gtkApplication.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d7dbd9

Please sign in to comment.