[rhythmbox] podcast: activate the podcast-add action on the right action group
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] podcast: activate the podcast-add action on the right action group
- Date: Wed, 1 Oct 2014 12:31:47 +0000 (UTC)
commit 344b179e956929ba5a07d93ba8d4a095bf32ba90
Author: Jonathan Matthew <jonathan d14n org>
Date: Wed Oct 1 22:31:21 2014 +1000
podcast: activate the podcast-add action on the right action group
podcast/rb-podcast-source.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/podcast/rb-podcast-source.c b/podcast/rb-podcast-source.c
index 3b5fc83..e54beaa 100644
--- a/podcast/rb-podcast-source.c
+++ b/podcast/rb-podcast-source.c
@@ -402,10 +402,7 @@ podcast_add_action_cb (GSimpleAction *action, GVariant *parameter, gpointer data
void
rb_podcast_source_add_feed (RBPodcastSource *source, const char *text)
{
- GtkWidget *window;
-
- window = gtk_widget_get_toplevel (GTK_WIDGET (source));
- g_action_group_activate_action (G_ACTION_GROUP (window), "podcast-add", NULL);
+ g_action_group_activate_action (G_ACTION_GROUP (g_application_get_default ()), "podcast-add", NULL);
rb_podcast_add_dialog_reset (RB_PODCAST_ADD_DIALOG (source->priv->add_dialog), text, TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]