Skip to content

Commit

Permalink
Move lastfm keys definition to lastfm plugin..
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasdelellis committed Jan 15, 2015
1 parent 094f00e commit 5e53d88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 9 additions & 3 deletions plugins/lastfm/pragha-lastfm-plugin.c
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);
Expand All @@ -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);

Expand Down
3 changes: 0 additions & 3 deletions src/pragha-preferences.h
Expand Up @@ -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. */
Expand Down

0 comments on commit 5e53d88

Please sign in to comment.