Mercurial > audlegacy
diff Plugins/General/scrobbler/xmms_scrobbler.c @ 1187:4c58ab006563 trunk
[svn] - remove the preferences UI on unload
author | nenolod |
---|---|
date | Sun, 11 Jun 2006 23:38:50 -0700 |
parents | 1eef4fd1aeb5 |
children | 22707aa5ea6f |
line wrap: on
line diff
--- a/Plugins/General/scrobbler/xmms_scrobbler.c Sun Jun 11 23:35:05 2006 -0700 +++ b/Plugins/General/scrobbler/xmms_scrobbler.c Sun Jun 11 23:38:50 2006 -0700 @@ -39,6 +39,7 @@ static void *xs_thread(void *); static void *hs_thread(void *); static int going; +static gint sc_id; static GThread *pt_scrobbler; static GMutex *m_scrobbler; @@ -64,7 +65,7 @@ GError **moo = NULL; GtkWidget *cfgdlg = create_cfgdlg(); - prefswin_page_new(cfgdlg, "Last.FM Client", DATA_DIR "/images/audioscrobbler.png"); + sc_id = prefswin_page_new(cfgdlg, "Last.FM", DATA_DIR "/images/audioscrobbler.png"); if ((cfgfile = bmp_cfg_db_open()) != NULL) { bmp_cfg_db_get_string(cfgfile, "audioscrobbler", "username", @@ -113,6 +114,8 @@ g_thread_join(pt_handshake); + prefswin_page_destroy(sc_id); + sc_cleaner(); }