diff options
Diffstat (limited to 'src/rhlibrary')
-rw-r--r-- | src/rhlibrary/app_window.go (renamed from src/rhlibrary/mainwindow.go) | 8 | ||||
-rw-r--r-- | src/rhlibrary/main.go | 2 |
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 |