From 5e53d88d7ceee0549213a0ae8d3494c5a5f13aa2 Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Thu, 15 Jan 2015 10:39:38 -0300 Subject: [PATCH] Move lastfm keys definition to lastfm plugin.. --- plugins/lastfm/pragha-lastfm-plugin.c | 12 +++++++++--- src/pragha-preferences.h | 3 --- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/plugins/lastfm/pragha-lastfm-plugin.c b/plugins/lastfm/pragha-lastfm-plugin.c index d74b242a..91a2c248 100644 --- a/plugins/lastfm/pragha-lastfm-plugin.c +++ b/plugins/lastfm/pragha-lastfm-plugin.c @@ -102,10 +102,16 @@ PRAGHA_PLUGIN_REGISTER (PRAGHA_TYPE_LASTFM_PLUGIN, PraghaLastfmPlugin, pragha_lastfm_plugin) - +/* + * Some useful definitions + */ #define LASTFM_API_KEY "ecdc2d21dbfe1139b1f0da35daca9309" #define LASTFM_SECRET "f3498ce387f30eeae8ea1b1023afb32b" +#define KEY_LASTFM_SCROBBLE "scrobble" +#define KEY_LASTFM_USER "lastfm_user" +#define KEY_LASTFM_PASS "lastfm_pass" + #define WAIT_UPDATE 5 typedef enum { @@ -350,7 +356,7 @@ pragha_lastfm_plugin_set_scrobble_support (PraghaPreferences *preferences, gbool pragha_preferences_set_boolean (preferences, plugin_group, - KEY_LASTFM, + KEY_LASTFM_SCROBBLE, supported); g_free (plugin_group); @@ -366,7 +372,7 @@ pragha_lastfm_plugin_get_scrobble_support (PraghaPreferences *preferences) scrobble = pragha_preferences_get_boolean (preferences, plugin_group, - KEY_LASTFM); + KEY_LASTFM_SCROBBLE); g_free (plugin_group); diff --git a/src/pragha-preferences.h b/src/pragha-preferences.h index ffb37bcd..f7905785 100644 --- a/src/pragha-preferences.h +++ b/src/pragha-preferences.h @@ -106,9 +106,6 @@ struct _PraghaPreferencesClass #define KEY_SHOW_MENUBAR "show_menubar" #define GROUP_SERVICES "services" -#define KEY_LASTFM "lastfm" -#define KEY_LASTFM_USER "lastfm_user" -#define KEY_LASTFM_PASS "lastfm_pass" #define KEY_USE_CDDB "use_cddb" /* Some default preferences. */