# HG changeset patch # User Gabriel Schulhof # Date 1194705177 0 # Node ID 04c945a8b50912533cf18c7eb8a2d538ea67d497 # Parent fbb044f7af3d0b98f23712efe55f5167ddf41a2d Make it compile diff -r fbb044f7af3d -r 04c945a8b509 pidgin/gtkblist.c --- a/pidgin/gtkblist.c Sat Nov 10 14:22:24 2007 +0000 +++ b/pidgin/gtkblist.c Sat Nov 10 14:32:57 2007 +0000 @@ -3064,10 +3064,9 @@ !purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/debug/enabled")); } -/*************************************************** - * Crap * - ***************************************************/ -static void (*show_with_parent_funcs)(GtkWindow *parent)[5] = +typedef void (*ShowWithParentFunc)(GtkWindow *parent); + +static ShowWithParentFunc show_with_parent_funcs[5] = { NULL, pidgin_pounces_manager_show_with_parent, @@ -3076,6 +3075,15 @@ pidgin_dialogs_about_with_parent }; +static void +pidgin_blist_show_with_parent(gpointer data1, gint show_with_parent_idx, gpointer data3) +{ + show_with_parent_funcs[show_with_parent_idx](GTK_WINDOW(gtkblist->window)); +} + +/*************************************************** + * Crap * + ***************************************************/ static GtkItemFactoryEntry blist_menu[] = { /* Buddies menu */ @@ -3127,12 +3135,6 @@ #endif }; -static void -pidgin_blist_show_with_parent(gpointer data1, gint show_with_parent_idx, gpointer data3) -{ - show_with_parent_funcs[show_with_parent_idx](GTK_WINDOW(gtkblist->window)); -} - /********************************************************* * Private Utility functions * *********************************************************/