[Xfce4-commits] <parole:master> Make repeat and shuffle inaccessible on dvd playback

Sean Davis noreply at xfce.org
Fri Oct 11 11:52:01 CEST 2013


Updating branch refs/heads/master
         to f258ca80b8a990a8d8830faad05a265280570846 (commit)
       from 7ef40199cb85f0b96ca4e5e4524ab1a196f6ef8f (commit)

commit f258ca80b8a990a8d8830faad05a265280570846
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Tue Sep 10 07:22:21 2013 -0400

    Make repeat and shuffle inaccessible on dvd playback

 src/parole-player.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/parole-player.c b/src/parole-player.c
index 20046ff..e537275 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -565,6 +565,8 @@ parole_player_reset (ParolePlayer *player)
     
     parole_media_list_set_playlist_view(player->priv->list, PAROLE_MEDIA_LIST_PLAYLIST_VIEW_STANDARD);
     
+    gtk_action_set_sensitive(GTK_ACTION(player->priv->toggle_repeat_action), TRUE);
+    gtk_action_set_sensitive(GTK_ACTION(player->priv->toggle_shuffle_action), TRUE);
 }
 
 static void
@@ -1121,6 +1123,8 @@ parole_player_disc_selected_cb (ParoleDisc *disc, const gchar *uri, const gchar
     {
         parole_media_list_set_playlist_view(player->priv->list, PAROLE_MEDIA_LIST_PLAYLIST_VIEW_DISC);
         gtk_widget_show(GTK_WIDGET(player->priv->dvd_menu));
+        gtk_action_set_sensitive(GTK_ACTION(player->priv->toggle_repeat_action), FALSE);
+        gtk_action_set_sensitive(GTK_ACTION(player->priv->toggle_shuffle_action), FALSE);
     }
 }
 


More information about the Xfce4-commits mailing list