[rhythmbox] ipod: add missing impl_paste implementation (bug #670772)



commit 923a12ae1d8ead84f9ee4c6d1605c372398a637a
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sat Feb 25 09:24:16 2012 +1000

    ipod: add missing impl_paste implementation (bug #670772)

 plugins/ipod/rb-ipod-source.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/plugins/ipod/rb-ipod-source.c b/plugins/ipod/rb-ipod-source.c
index 39717ce..8a88f78 100644
--- a/plugins/ipod/rb-ipod-source.c
+++ b/plugins/ipod/rb-ipod-source.c
@@ -65,6 +65,7 @@ static void rb_ipod_source_constructed (GObject *object);
 static void rb_ipod_source_dispose (GObject *object);
 
 static void impl_delete (RBSource *asource);
+static RBTrackTransferBatch *impl_paste (RBSource *source, GList *entries);
 static void rb_ipod_load_songs (RBiPodSource *source);
 
 static gboolean impl_show_popup (RBDisplayPage *page);
@@ -177,6 +178,7 @@ rb_ipod_source_class_init (RBiPodSourceClass *klass)
 	source_class->impl_delete = impl_delete;
 
 	source_class->impl_can_paste = (RBSourceFeatureFunc) rb_true_function;
+	source_class->impl_paste = impl_paste;
 
 	mps_class->impl_get_entries = impl_get_entries;
 	mps_class->impl_get_capacity = impl_get_capacity;
@@ -1330,6 +1332,12 @@ impl_delete_entries (RBMediaPlayerSource *source, GList *entries, RBMediaPlayerS
 	g_thread_create ((GThreadFunc) delete_thread, data, FALSE, NULL);
 }
 
+static RBTrackTransferBatch *
+impl_paste (RBSource *source, GList *entries)
+{
+	return rb_transfer_target_transfer (RB_TRANSFER_TARGET (source), entries);
+}
+
 static void
 impl_delete (RBSource *source)
 {



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