[Xfce4-commits] [apps/parole] 01/01: Enable play button when single item is added to playlist (bug #13724) (LP: #1705243)
noreply at xfce.org
noreply at xfce.org
Thu Apr 4 04:48:52 CEST 2019
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/parole.
commit 81e9ec60313104346b5753ea19e1aa1ab3e468ad
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Wed Apr 3 22:48:46 2019 -0400
Enable play button when single item is added to playlist (bug #13724) (LP: #1705243)
---
src/parole-player.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/parole-player.c b/src/parole-player.c
index 97e9983..4c62719 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -1217,8 +1217,9 @@ parole_player_media_cursor_changed_cb(ParoleMediaList *list, gboolean media_sele
/* Play/Pause */
if (player->priv->state < PAROLE_STATE_PAUSED) {
- g_simple_action_set_enabled(player->priv->media_playpause_action,
- media_selected || !parole_media_list_is_empty(player->priv->list));
+ enabled = media_selected || !parole_media_list_is_empty(player->priv->list);
+ gtk_widget_set_sensitive(player->priv->playpause_button, enabled);
+ g_simple_action_set_enabled(player->priv->media_playpause_action, enabled);
}
enabled = parole_media_list_get_playlist_count(player->priv->list) > 1;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list