[rhythmbox] audioscrobbler: select radio source after being created by custom builder
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] audioscrobbler: select radio source after being created by custom builder
- Date: Tue, 21 Sep 2010 10:53:17 +0000 (UTC)
commit 1216646e22d37117fa4aeb33adf7e47d95a89a29
Author: Jamie Nicol <jamie thenicols net>
Date: Fri Jul 23 15:07:56 2010 +0100
audioscrobbler: select radio source after being created by custom builder
.../rb-audioscrobbler-profile-source.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/plugins/audioscrobbler/rb-audioscrobbler-profile-source.c b/plugins/audioscrobbler/rb-audioscrobbler-profile-source.c
index 86b10b0..a34216c 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler-profile-source.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler-profile-source.c
@@ -888,6 +888,9 @@ station_creator_button_clicked_cb (GtkButton *button,
RBAudioscrobblerRadioType type;
char *url;
char *name;
+ RBSource *radio;
+ RBShell *shell;
+ RBSourceList *sourcelist;
type = gtk_combo_box_get_active (GTK_COMBO_BOX (source->priv->station_creator_type_combo));
@@ -896,12 +899,17 @@ station_creator_button_clicked_cb (GtkButton *button,
name = g_strdup_printf (rb_audioscrobbler_radio_type_get_default_name (type),
arg);
- add_radio_station (source, url, name);
+ radio = add_radio_station (source, url, name);
+ g_object_get (source, "shell", &shell, NULL);
+ g_object_get (shell, "sourcelist", &sourcelist, NULL);
+ rb_sourcelist_select (sourcelist, radio);
gtk_entry_set_text (GTK_ENTRY (source->priv->station_creator_arg_entry), "");
g_free (url);
g_free (name);
+ g_object_unref (shell);
+ g_object_unref (sourcelist);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]