Mercurial > audlegacy
changeset 1185:42d4b152c14d trunk
[svn] - API change, please move along
author | nenolod |
---|---|
date | Sun, 11 Jun 2006 23:19:33 -0700 |
parents | b146ec74d778 |
children | d7848ff5bbe5 |
files | ChangeLog audacious/prefswin.c audacious/prefswin.h |
diffstat | 3 files changed, 15 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Jun 11 22:50:31 2006 -0700 +++ b/ChangeLog Sun Jun 11 23:19:33 2006 -0700 @@ -1,3 +1,12 @@ +2006-06-12 05:50:31 +0000 William Pitcock <nenolod@nenolod.net> + revision [1278] + - place plugins we cannot register UIs for right now in a queue and register them later + + + Changes: Modified: + +44 -1 trunk/audacious/prefswin.c + + 2006-06-12 05:10:48 +0000 William Pitcock <nenolod@nenolod.net> revision [1276] - ok...
--- a/audacious/prefswin.c Sun Jun 11 22:50:31 2006 -0700 +++ b/audacious/prefswin.c Sun Jun 11 23:19:33 2006 -0700 @@ -2327,7 +2327,7 @@ * * - nenolod */ -gboolean +gint prefswin_page_new(GtkWidget *container, gchar *name, gchar *imgurl) { GtkTreeModel *model; @@ -2339,7 +2339,7 @@ if (treeview == NULL || container == NULL || category_notebook == NULL) { prefswin_page_queue_new(container, name, imgurl); - return FALSE; + return -1; } model = gtk_tree_view_get_model(treeview); @@ -2347,14 +2347,14 @@ if (model == NULL) { prefswin_page_queue_new(container, name, imgurl); - return FALSE; + return -1; } gtk_widget_show(container); id = gtk_notebook_append_page(GTK_NOTEBOOK(category_notebook), container, NULL); if (id == -1) - return FALSE; + return -1; if (imgurl != NULL) img = gdk_pixbuf_new_from_file(imgurl, NULL); @@ -2368,5 +2368,5 @@ if (img != NULL) g_object_unref(img); - return TRUE; + return id; }
--- a/audacious/prefswin.h Sun Jun 11 22:50:31 2006 -0700 +++ b/audacious/prefswin.h Sun Jun 11 23:19:33 2006 -0700 @@ -22,6 +22,6 @@ void create_prefs_window(void); void show_prefs_window(void); -gboolean prefswin_page_new(GtkWidget *container, gchar *name, gchar *imgurl); +gint prefswin_page_new(GtkWidget *container, gchar *name, gchar *imgurl); #endif