[rhythmbox] audioscrobbler: do not create multiple profile pages per service.
- From: Jamie Nicol <jamien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] audioscrobbler: do not create multiple profile pages per service.
- Date: Wed, 13 Apr 2011 22:14:11 +0000 (UTC)
commit 5a4b1ab5ab0450d55f9671c7abc056c6360c8afc
Author: Jamie Nicol <jamie thenicols net>
Date: Wed Apr 13 23:09:38 2011 +0100
audioscrobbler: do not create multiple profile pages per service.
plugins/audioscrobbler/rb-audioscrobbler-plugin.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/plugins/audioscrobbler/rb-audioscrobbler-plugin.c b/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
index f660561..793a62b 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
@@ -145,14 +145,6 @@ impl_activate (RBPlugin *bplugin,
plugin, 0);
enabled = g_settings_get_boolean (plugin->lastfm_settings, AUDIOSCROBBLER_SERVICE_ENABLED_KEY);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (plugin->lastfm_enabled_check), enabled);
- if (enabled) {
- RBAudioscrobblerService *lastfm;
- lastfm = rb_audioscrobbler_service_new_lastfm ();
- plugin->lastfm_page = rb_audioscrobbler_profile_page_new (plugin->shell,
- RB_PLUGIN (plugin),
- lastfm);
- g_object_unref (lastfm);
- }
plugin->librefm_settings = g_settings_new_with_path (AUDIOSCROBBLER_SETTINGS_SCHEMA,
AUDIOSCROBBLER_SETTINGS_PATH "/Libre.fm");
@@ -162,14 +154,6 @@ impl_activate (RBPlugin *bplugin,
plugin, 0);
enabled = g_settings_get_boolean (plugin->librefm_settings, AUDIOSCROBBLER_SERVICE_ENABLED_KEY);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (plugin->librefm_enabled_check), enabled);
- if (enabled) {
- RBAudioscrobblerService *librefm;
- librefm = rb_audioscrobbler_service_new_librefm ();
- plugin->librefm_page = rb_audioscrobbler_profile_page_new (plugin->shell,
- RB_PLUGIN (plugin),
- librefm);
- g_object_unref (librefm);
- }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]