Mercurial > audlegacy
changeset 1187:4c58ab006563 trunk
[svn] - remove the preferences UI on unload
author | nenolod |
---|---|
date | Sun, 11 Jun 2006 23:38:50 -0700 |
parents | d7848ff5bbe5 |
children | 35dc5d2a1675 |
files | ChangeLog Plugins/General/scrobbler/xmms_scrobbler.c |
diffstat | 2 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Jun 11 23:35:05 2006 -0700 +++ b/ChangeLog Sun Jun 11 23:38:50 2006 -0700 @@ -1,3 +1,13 @@ +2006-06-12 06:35:05 +0000 William Pitcock <nenolod@nenolod.net> + revision [1282] + - prefswin_page_destroy() code, example will be added to the scrobbler plugin momentarily + + + Changes: Modified: + +34 -0 trunk/audacious/prefswin.c + +1 -0 trunk/audacious/prefswin.h + + 2006-06-12 06:19:33 +0000 William Pitcock <nenolod@nenolod.net> revision [1280] - API change, please move along
--- 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(); }