comparison src/scrobbler/plugin.c @ 2071:f235b4a365a6

prefswin shit
author William Pitcock <nenolod@atheme.org>
date Sun, 14 Oct 2007 20:11:08 -0500
parents 0803fba87da8
children b8da6a0b0da2
comparison
equal deleted inserted replaced
2070:8404e52b00e4 2071:f235b4a365a6
99 sc_going = 1; 99 sc_going = 1;
100 ge_going = 1; 100 ge_going = 1;
101 GError **moo = NULL; 101 GError **moo = NULL;
102 cfgdlg = create_cfgdlg(); 102 cfgdlg = create_cfgdlg();
103 103
104 prefswin_page_new(cfgdlg, "Scrobbler", DATA_DIR "/images/audioscrobbler.png"); 104 aud_prefswin_page_new(cfgdlg, "Scrobbler", DATA_DIR "/images/audioscrobbler.png");
105 105
106 if ((cfgfile = bmp_cfg_db_open()) != NULL) { 106 if ((cfgfile = bmp_cfg_db_open()) != NULL) {
107 bmp_cfg_db_get_string(cfgfile, "audioscrobbler", "username", 107 bmp_cfg_db_get_string(cfgfile, "audioscrobbler", "username",
108 &username); 108 &username);
109 bmp_cfg_db_get_string(cfgfile, "audioscrobbler", "password", 109 bmp_cfg_db_get_string(cfgfile, "audioscrobbler", "password",
170 pdebug("plugin started", DEBUG); 170 pdebug("plugin started", DEBUG);
171 } 171 }
172 172
173 static void cleanup(void) 173 static void cleanup(void)
174 { 174 {
175 prefswin_page_destroy(cfgdlg); 175 aud_prefswin_page_destroy(cfgdlg);
176 176
177 if (!sc_going && !ge_going) 177 if (!sc_going && !ge_going)
178 return; 178 return;
179 pdebug("about to lock mutex", DEBUG); 179 pdebug("about to lock mutex", DEBUG);
180 g_mutex_lock(m_scrobbler); 180 g_mutex_lock(m_scrobbler);