summaryrefslogtreecommitdiff
path: root/src/rhlibrary/selector_widget.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhlibrary/selector_widget.go')
-rw-r--r--src/rhlibrary/selector_widget.go58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/rhlibrary/selector_widget.go b/src/rhlibrary/selector_widget.go
index f5b732e..f4dc278 100644
--- a/src/rhlibrary/selector_widget.go
+++ b/src/rhlibrary/selector_widget.go
@@ -88,64 +88,6 @@ func getManualSelectorWidget(db *rddb.DBChan, p *player.PlayerChan) (gtk.IWidget
return grid, nil
}
-func appendShowListEntry(grid *gtk.Grid, show rddb.ShowListEntry, db *rddb.DBChan, p *player.PlayerChan) error {
- rhdl.Printf("Show: %d, %s\n", show.ID, show.Title)
-
- carts, err := db.GetShowCartList(show)
- if err != nil {
- return err
- }
-
- for _, cart := range carts {
- rhdl.Printf(" [%d]: %s\n", cart.Number, cart.Title)
- for _, cut := range cart.Cuts {
- rhdl.Printf(" %+v", cut)
- }
- }
- return nil
-}
-
-func getShowsSelectorWidget(db *rddb.DBChan, p *player.PlayerChan) (gtk.IWidget, error) {
- grid, err := gtk.GridNew()
- if err != nil {
- return nil, err
- }
- grid.SetHExpand(true)
- grid.SetVExpand(true)
-
- shows, err := db.GetShowList("equinox") // TODO: get username from system
- if err != nil {
- rhdl.Println(err) // TODO: feedback at GUI?
- return grid, nil
- }
-
- for _, show := range shows {
- if err = appendShowListEntry(grid, show, db, p); err != nil {
- return nil, err
- }
- }
-
- return grid, nil
-}
-
-func getJinglesSelectorWidget(db *rddb.DBChan, p *player.PlayerChan) (gtk.IWidget, error) {
- page, err := gtk.LabelNew("JINGLES")
- if err != nil {
- return nil, err
- }
-
- return page, nil
-}
-
-func getPoolsSelectorWidget(db *rddb.DBChan, p *player.PlayerChan) (gtk.IWidget, error) {
- page, err := gtk.LabelNew("MUSIC POOLS")
- if err != nil {
- return nil, err
- }
-
- return page, nil
-}
-
func addSelectorPage(nb *gtk.Notebook, page gtk.IWidget, title string) (err error) {
var label *gtk.Label
if label, err = gtk.LabelNew(title); err != nil {