[rhythmbox] auto-playlist: enable add to playlist menu here too
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] auto-playlist: enable add to playlist menu here too
- Date: Tue, 4 Jun 2013 22:17:31 +0000 (UTC)
commit 5384d4e51a69a9b65034449844329634f5e28fa3
Author: Jonathan Matthew <jonathan d14n org>
Date: Wed Jun 5 08:17:09 2013 +1000
auto-playlist: enable add to playlist menu here too
sources/rb-auto-playlist-source.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/sources/rb-auto-playlist-source.c b/sources/rb-auto-playlist-source.c
index 2cda85c..95396bb 100644
--- a/sources/rb-auto-playlist-source.c
+++ b/sources/rb-auto-playlist-source.c
@@ -236,6 +236,7 @@ rb_auto_playlist_source_constructed (GObject *object)
GtkAccelGroup *accel_group;
GtkWidget *grid;
GMenu *section;
+ RBApplication *app = RB_APPLICATION (g_application_get_default ());
RB_CHAIN_GOBJECT_METHOD (rb_auto_playlist_source_parent_class, constructed, object);
@@ -307,6 +308,10 @@ rb_auto_playlist_source_constructed (GObject *object)
rb_source_bind_settings (RB_SOURCE (source), GTK_WIDGET (songs), priv->paned, GTK_WIDGET
(priv->browser));
g_object_unref (songs);
+ g_object_set (source,
+ "playlist-menu", rb_application_get_shared_menu (app, "playlist-page-menu"),
+ NULL);
+
gtk_widget_show_all (GTK_WIDGET (source));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]