summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-02-17 16:39:50 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-02-17 16:39:50 (GMT)
commit617b9dfcb9b3487d73240050e630c7fc86d48c8c (patch)
treed848585a00b7ddc311c98bcee6fa3eb8325817a9
parentcbd775783166856e5c5aef26c6959e8df5142816 (diff)
set window position to center on init
-rw-r--r--src/rhlibrary/app_window.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rhlibrary/app_window.go b/src/rhlibrary/app_window.go
index d6a428d..a863acc 100644
--- a/src/rhlibrary/app_window.go
+++ b/src/rhlibrary/app_window.go
@@ -105,6 +105,7 @@ func NewAppWindow(db *rddb.DBChan, player *player.PlayerChan, width, height int)
frame.Add(grid)
aw.win.Add(frame)
+ aw.win.SetPosition(gtk.WIN_POS_CENTER)
aw.win.SetDefaultSize(width, height)
return
}