summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-01-13 21:05:40 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-01-13 21:05:40 (GMT)
commitea3e0b5a08740238d48b1c5eb73adf5e3412f4ef (patch)
tree1cac74bac7081ecabddd1a0dfb671b54c3f5c50a
parent2929bd10de03e5c755fbb5268e3436681a82d7f5 (diff)
renamed MainWindow to AppWindow
-rw-r--r--src/rhlibrary/app_window.go (renamed from src/rhlibrary/mainwindow.go)8
-rw-r--r--src/rhlibrary/main.go2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/rhlibrary/mainwindow.go b/src/rhlibrary/app_window.go
index d7c240d..c524f36 100644
--- a/src/rhlibrary/mainwindow.go
+++ b/src/rhlibrary/app_window.go
@@ -33,12 +33,12 @@ func init() {
gtk.Init(nil)
}
-type MainWindow struct {
+type AppWindow struct {
win *gtk.Window
player *player.PlayerChan
}
-func (mw *MainWindow) ShowAndRun() {
+func (mw *AppWindow) ShowAndRun() {
mw.win.ShowAll()
if err := mw.player.Load(1, 1); err != nil {
rhl.Println(err)
@@ -49,8 +49,8 @@ func (mw *MainWindow) ShowAndRun() {
gtk.Main()
}
-func NewMainWindow(player *player.PlayerChan, width, height int) (mw *MainWindow, err error) {
- mw = &MainWindow{}
+func NewAppWindow(player *player.PlayerChan, width, height int) (mw *AppWindow, err error) {
+ mw = &AppWindow{}
mw.player = player
if mw.win, err = gtk.WindowNew(gtk.WINDOW_TOPLEVEL); err != nil {
return
diff --git a/src/rhlibrary/main.go b/src/rhlibrary/main.go
index 1676c18..3b87e19 100644
--- a/src/rhlibrary/main.go
+++ b/src/rhlibrary/main.go
@@ -90,7 +90,7 @@ func main() {
return
}
- mw, err := NewMainWindow(p.GetInterface(), 640, 360)
+ mw, err := NewAppWindow(p.GetInterface(), 640, 360)
if err != nil {
rhl.Println("Error initializing Main Window:", err)
return