summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rhlibrary/selector_widget.go18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/rhlibrary/selector_widget.go b/src/rhlibrary/selector_widget.go
index d0aab71..c24b452 100644
--- a/src/rhlibrary/selector_widget.go
+++ b/src/rhlibrary/selector_widget.go
@@ -120,7 +120,7 @@ func addSelectorPage(nb *gtk.Notebook, page gtk.IWidget, title string) (err erro
if label, err = gtk.LabelNew(title); err != nil {
return
}
- label.SetSizeRequest(150, 15)
+ label.SetSizeRequest(150, 15) // workaround until expanding tabs works...
nb.AppendPage(page, label)
return
}
@@ -149,7 +149,7 @@ func getSelectorWidget(db *rddb.DBChan, p *player.PlayerChan) (gtk.IWidget, erro
if page, err = getPoolsSelector(p); err != nil {
return nil, err
}
- if err = addSelectorPage(nb, page, "Musicpools"); err != nil {
+ if err = addSelectorPage(nb, page, "Musikpools"); err != nil {
return nil, err
}
@@ -160,6 +160,20 @@ func getSelectorWidget(db *rddb.DBChan, p *player.PlayerChan) (gtk.IWidget, erro
return nil, err
}
+ var cp *gtk.CssProvider
+ if cp, err = gtk.CssProviderNew(); err != nil {
+ return nil, err
+ }
+ if err = cp.LoadFromData(".notebook.header { background-color: unset; }"); err != nil {
+ return nil, err
+ }
+ var sc *gtk.StyleContext
+ if sc, err = nb.GetStyleContext(); err != nil {
+ return nil, err
+ }
+ sc.AddProvider(cp, 600) // TOOD: hardcoded value
+
+ nb.SetProperty("show-border", false)
nb.SetHExpand(true)
nb.SetVExpand(true)