[Xfce4-commits] <parole:master> Set the media tag entries insensitive if we aren't playing local file.

Ali Abdallah noreply at xfce.org
Thu Nov 26 10:16:01 CET 2009


Updating branch refs/heads/master
         to f6c17cfa4f20da3d9af96ad8e25da112bd834c92 (commit)
       from 528c8cc3e0bcdb3eeb56320a2a0abb4c10aab511 (commit)

commit f6c17cfa4f20da3d9af96ad8e25da112bd834c92
Author: Ali Abdallah <ali at ali-xfce.org>
Date:   Wed Nov 25 20:05:22 2009 +0100

    Set the media tag entries insensitive if we aren't playing local file.

 plugins/properties/stream-properties-provider.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/plugins/properties/stream-properties-provider.c b/plugins/properties/stream-properties-provider.c
index 5420be8..c7e1e6a 100644
--- a/plugins/properties/stream-properties-provider.c
+++ b/plugins/properties/stream-properties-provider.c
@@ -408,6 +408,7 @@ tag_message_cb (ParoleProviderPlayer *player, const ParoleStream *stream, Stream
     ParoleMediaType media_type;
     gchar *uri = NULL;
     GError *error = NULL;
+    gboolean sensitive;
 #endif
     
     g_object_get (G_OBJECT (stream),
@@ -451,6 +452,13 @@ tag_message_cb (ParoleProviderPlayer *player, const ParoleStream *stream, Stream
 		enable_tag_save (prop->save);
 	}
     }
+    
+    sensitive = media_type = PAROLE_MEDIA_TYPE_LOCAL_FILE
+    gtk_widget_set_sensitive (prop->title, sensitive);
+    gtk_widget_set_sensitive (prop->artist, sensitive);
+    gtk_widget_set_sensitive (prop->album, sensitive);
+    gtk_widget_set_sensitive (prop->year, sensitive);
+    gtk_widget_set_sensitive (prop->save, sensitive);
 #endif
 
     if ( str )



More information about the Xfce4-commits mailing list