[rhythmbox] removable-media: use 'delete' rather than 'remove' for removable media sources
- From: Jonathan Matthew <jmatthew src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rhythmbox] removable-media: use 'delete' rather than 'remove' for removable media sources
- Date: Wed, 13 Jan 2010 13:11:22 +0000 (UTC)
commit 2b7227b75c12f1795599daabb1ddb70e356a02b4
Author: Jonathan Matthew <jonathan d14n org>
Date: Wed Jan 13 22:55:47 2010 +1000
removable-media: use 'delete' rather than 'remove' for removable media sources
Deleting songs from a removable media source should delete the files
from the device, not just remove them from the library.
sources/rb-removable-media-source.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/sources/rb-removable-media-source.c b/sources/rb-removable-media-source.c
index ea84491..d68b3d6 100644
--- a/sources/rb-removable-media-source.c
+++ b/sources/rb-removable-media-source.c
@@ -64,6 +64,7 @@ static gboolean impl_should_paste (RBRemovableMediaSource *source,
RhythmDBEntry *entry);
static guint impl_want_uri (RBSource *source, const char *uri);
static gboolean impl_uri_is_source (RBSource *source, const char *uri);
+static char *impl_get_delete_action (RBSource *source);
typedef struct
{
@@ -106,6 +107,7 @@ rb_removable_media_source_class_init (RBRemovableMediaSourceClass *klass)
source_class->impl_show_popup = (RBSourceFeatureFunc) rb_false_function;
source_class->impl_want_uri = impl_want_uri;
source_class->impl_uri_is_source = impl_uri_is_source;
+ source_class->impl_get_delete_action = impl_get_delete_action;
browser_source_class->impl_get_paned_key = NULL;
browser_source_class->impl_has_drop_support = (RBBrowserSourceFeatureFunc) rb_false_function;
@@ -741,3 +743,8 @@ rb_removable_media_source_track_add_error (RBRemovableMediaSource *source,
}
}
+static char *
+impl_get_delete_action (RBSource *source)
+{
+ return g_strdup ("EditDelete");
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]