commit 3002491ed15fff5eca3b16d070be1ebeb56236e1
Author: vrishab <vrishab.in@gmail.com>
Date:   Wed Nov 2 23:43:52 2016 +0530

    Link podcast plugin menus

diff --git a/podcast/rb-podcast-source.c b/podcast/rb-podcast-source.c
index 86924ee..6f6bc12 100644
--- a/podcast/rb-podcast-source.c
+++ b/podcast/rb-podcast-source.c
@@ -1303,6 +1303,7 @@ impl_constructed (GObject *object)
 	GtkAccelGroup *accel_group;
 	GtkBuilder *builder;
 	GMenu *section;
+	GApplication *app;
 	GActionEntry actions[] = {
 		{ "podcast-add", podcast_add_action_cb },
 		{ "podcast-download", podcast_download_action_cb },
@@ -1313,6 +1314,7 @@ impl_constructed (GObject *object)
 		{ "podcast-feed-delete", podcast_feed_delete_action_cb }
 	};
 
+	app = g_application_get_default ();
 	RB_CHAIN_GOBJECT_METHOD (rb_podcast_source_parent_class, constructed, object);
 	source = RB_PODCAST_SOURCE (object);
 
@@ -1323,11 +1325,14 @@ impl_constructed (GObject *object)
 		      "accel-group", &accel_group,
 		      NULL);
 
-	_rb_add_display_page_actions (G_ACTION_MAP (g_application_get_default ()), G_OBJECT (shell), actions, G_N_ELEMENTS (actions));
+	_rb_add_display_page_actions (G_ACTION_MAP (app), G_OBJECT (shell), actions, G_N_ELEMENTS (actions));
 
 	builder = rb_builder_load ("podcast-popups.ui", NULL);
 	source->priv->feed_popup = G_MENU_MODEL (gtk_builder_get_object (builder, "podcast-feed-popup"));
 	source->priv->episode_popup = G_MENU_MODEL (gtk_builder_get_object (builder, "podcast-episode-popup"));
+	rb_application_link_shared_menus (RB_APPLICATION (app), G_MENU (source->priv->feed_popup));
+	rb_application_link_shared_menus (RB_APPLICATION (app), G_MENU (source->priv->episode_popup));
+
 	g_object_ref (source->priv->feed_popup);
 	g_object_ref (source->priv->episode_popup);
 	g_object_unref (builder);
