summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rhlibrary/player_widget.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rhlibrary/player_widget.go b/src/rhlibrary/player_widget.go
index 89f2fe5..8dfbebe 100644
--- a/src/rhlibrary/player_widget.go
+++ b/src/rhlibrary/player_widget.go
@@ -48,8 +48,8 @@ func addPlayPauseButton(box *gtk.Box, p *player.PlayerChan) (err error) {
if pauseIcon, err = gtk.ImageNewFromIconName("media-playback-pause", gtk.ICON_SIZE_LARGE_TOOLBAR); err != nil {
return
}
- btn.SetImage(playIcon)
btn.SetSizeRequest(32, 32)
+ btn.SetImage(playIcon)
btn.SetSensitive(false)
btn.Connect("clicked", func(_ *gtk.Button) {
@@ -62,14 +62,14 @@ func addPlayPauseButton(box *gtk.Box, p *player.PlayerChan) (err error) {
glib.IdleAdd(func() {
switch state {
case player.IDLE:
- btn.SetSensitive(false)
btn.SetImage(playIcon)
+ btn.SetSensitive(false)
case player.PAUSED:
- btn.SetSensitive(true)
btn.SetImage(playIcon)
- case player.PLAYING:
btn.SetSensitive(true)
+ case player.PLAYING:
btn.SetImage(pauseIcon)
+ btn.SetSensitive(true)
}
})
return true
@@ -251,7 +251,7 @@ func getPlayerWidget(p *player.PlayerChan) (gtk.IWidget, error) {
return nil, err
}
grid.SetOrientation(gtk.ORIENTATION_HORIZONTAL)
- grid.SetRowSpacing(7)
+ grid.SetRowSpacing(8)
grid.SetColumnSpacing(13)
if err = addButtons(grid, p); err != nil {