diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-02-17 15:30:22 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-02-17 15:30:22 (GMT) |
commit | cbd775783166856e5c5aef26c6959e8df5142816 (patch) | |
tree | 7e0853b8eb468e5f7519ae25271c2fdd74fb0087 /src/rhlibrary | |
parent | 1cf15abd6edb4579a811230f9a3e053b34ab78e2 (diff) |
remove hardcoded values
Diffstat (limited to 'src/rhlibrary')
-rw-r--r-- | src/rhlibrary/vumeter_widget.go | 2 | ||||
-rw-r--r-- | src/rhlibrary/widget_common.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/rhlibrary/vumeter_widget.go b/src/rhlibrary/vumeter_widget.go index 1886653..80214fd 100644 --- a/src/rhlibrary/vumeter_widget.go +++ b/src/rhlibrary/vumeter_widget.go @@ -141,7 +141,7 @@ func createMeterBar(segments float64) (bar *gtk.LevelBar, err error) { if cp, err = getMeterBarCSS(); err != nil { return } - sc.AddProvider(cp, 600) // TOOD: hardcoded value + sc.AddProvider(cp, gtk.STYLE_PROVIDER_PRIORITY_APPLICATION) return } diff --git a/src/rhlibrary/widget_common.go b/src/rhlibrary/widget_common.go index 33be7ae..c597437 100644 --- a/src/rhlibrary/widget_common.go +++ b/src/rhlibrary/widget_common.go @@ -40,6 +40,6 @@ func setCssStyle(widget *gtk.Widget, css string) (err error) { if sc, err = widget.GetStyleContext(); err != nil { return } - sc.AddProvider(cp, 600) // TOOD: hardcoded value + sc.AddProvider(cp, gtk.STYLE_PROVIDER_PRIORITY_APPLICATION) return } |