# HG changeset patch # User nenolod # Date 1150093173 25200 # Node ID 42d4b152c14da588ab5d4fb114e77f86265d0816 # Parent b146ec74d778094ccbf1cbe1414ea2c3aaa7662c [svn] - API change, please move along diff -r b146ec74d778 -r 42d4b152c14d ChangeLog --- 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 + 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 revision [1276] - ok... diff -r b146ec74d778 -r 42d4b152c14d audacious/prefswin.c --- 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; } diff -r b146ec74d778 -r 42d4b152c14d audacious/prefswin.h --- 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