Mercurial > audlegacy
changeset 1188:35dc5d2a1675 trunk
[svn] - another API change [sorry!]
author | nenolod |
---|---|
date | Sun, 11 Jun 2006 23:51:02 -0700 |
parents | 4c58ab006563 |
children | 22707aa5ea6f |
files | ChangeLog audacious/prefswin.c audacious/prefswin.h |
diffstat | 3 files changed, 19 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Jun 11 23:38:50 2006 -0700 +++ b/ChangeLog Sun Jun 11 23:51:02 2006 -0700 @@ -1,3 +1,12 @@ +2006-06-12 06:38:50 +0000 William Pitcock <nenolod@nenolod.net> + revision [1284] + - remove the preferences UI on unload + + + Changes: Modified: + +4 -1 trunk/Plugins/General/scrobbler/xmms_scrobbler.c + + 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
--- a/audacious/prefswin.c Sun Jun 11 23:38:50 2006 -0700 +++ b/audacious/prefswin.c Sun Jun 11 23:51:02 2006 -0700 @@ -2373,14 +2373,20 @@ } void -prefswin_page_destroy(gint id) +prefswin_page_destroy(GtkWidget *container) { GtkTreeModel *model; GtkTreeIter iter; GtkTreeView *treeview = GTK_TREE_VIEW(category_treeview); gboolean ret; - - if (category_notebook == NULL || treeview == NULL) + gint id; + + if (category_notebook == NULL || treeview == NULL || container == NULL) + return; + + id = gtk_notebook_page_num(GTK_NOTEBOOK(category_notebook), container); + + if (id == -1) return; gtk_notebook_remove_page(GTK_NOTEBOOK(category_notebook), id);
--- a/audacious/prefswin.h Sun Jun 11 23:38:50 2006 -0700 +++ b/audacious/prefswin.h Sun Jun 11 23:51:02 2006 -0700 @@ -23,6 +23,6 @@ void show_prefs_window(void); gint prefswin_page_new(GtkWidget *container, gchar *name, gchar *imgurl); -void prefswin_page_destroy(gint id); +void prefswin_page_destroy(GtkWidget *container); #endif