summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-01-29 13:04:41 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2016-01-29 13:04:41 (GMT)
commitafe221e150b838a7319c4ab9fdcfe5ecb47a3de3 (patch)
tree296c1e09cc2c9d4baa82c79e800debc5f0a518f9
parent608a6e5d26c8f751cdb784f4574c0085bf68cfb3 (diff)
fixed pause image
-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 {