[rhythmbox] play-queue: don't allow the queue to be removed
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] play-queue: don't allow the queue to be removed
- Date: Thu, 25 Aug 2016 21:41:39 +0000 (UTC)
commit 1b69c9beec385fa847963960f9a819e0f0f80c6a
Author: Jonathan Matthew <jonathan d14n org>
Date: Fri Aug 26 07:41:06 2016 +1000
play-queue: don't allow the queue to be removed
https://bugzilla.gnome.org/show_bug.cgi?id=770411
sources/rb-play-queue-source.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/sources/rb-play-queue-source.c b/sources/rb-play-queue-source.c
index ec13f18..7c975e1 100644
--- a/sources/rb-play-queue-source.c
+++ b/sources/rb-play-queue-source.c
@@ -95,6 +95,7 @@ static void impl_show_entry_view_popup (RBPlaylistSource *source,
gboolean over_entry);
static void impl_save_contents_to_xml (RBPlaylistSource *source,
xmlNodePtr node);
+static gboolean impl_can_remove (RBDisplayPage *page);
static void queue_clear_action_cb (GSimpleAction *action, GVariant *parameters, gpointer data);
static void queue_shuffle_action_cb (GSimpleAction *action, GVariant *parameters, gpointer data);
@@ -192,6 +193,7 @@ rb_play_queue_source_class_init (RBPlayQueueSourceClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
RBSourceClass *source_class = RB_SOURCE_CLASS (klass);
+ RBDisplayPageClass *page_class = RB_DISPLAY_PAGE_CLASS (klass);
RBPlaylistSourceClass *playlist_class = RB_PLAYLIST_SOURCE_CLASS (klass);
object_class->constructed = rb_play_queue_source_constructed;
@@ -202,6 +204,8 @@ rb_play_queue_source_class_init (RBPlayQueueSourceClass *klass)
source_class->can_add_to_queue = (RBSourceFeatureFunc) rb_false_function;
source_class->can_rename = (RBSourceFeatureFunc) rb_false_function;
+ page_class->can_remove = impl_can_remove;
+
playlist_class->show_entry_view_popup = impl_show_entry_view_popup;
playlist_class->save_contents_to_xml = impl_save_contents_to_xml;
@@ -690,3 +694,9 @@ rb_play_queue_dbus_method_call (GDBusConnection *connection,
method_name);
}
}
+
+static gboolean
+impl_can_remove (RBDisplayPage *page)
+{
+ return FALSE;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]