[rhythmbox] soundcloud: don't allow tracks to be copied



commit 362eb0d77fb5f1bcdb7baf13e164eff4ab3cc216
Author: Jonathan Matthew <jonathan d14n org>
Date:   Wed Nov 26 22:15:02 2014 +1000

    soundcloud: don't allow tracks to be copied

 plugins/soundcloud/soundcloud.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/soundcloud/soundcloud.py b/plugins/soundcloud/soundcloud.py
index 203099f..fcc2396 100644
--- a/plugins/soundcloud/soundcloud.py
+++ b/plugins/soundcloud/soundcloud.py
@@ -75,6 +75,7 @@ class SoundCloudPlugin(GObject.Object, Peas.Activatable):
                                           query_model=model,
                                           entry_type=self.entry_type,
                                           icon=icon)
+               shell.register_entry_type_for_source(self.source, self.entry_type)
                self.source.setup()
                group = RB.DisplayPageGroup.get_by_id ("shared")
                shell.append_display_page(self.source, group)
@@ -499,4 +500,7 @@ class SoundCloudSource(RB.StreamingSource):
        def do_get_playback_status(self, text, progress):
                return self.get_progress()
 
+       def do_can_copy(self):
+               return False
+
 GObject.type_register(SoundCloudSource)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]