changeset 21288:04c945a8b509

Make it compile
author Gabriel Schulhof <nix@go-nix.ca>
date Sat, 10 Nov 2007 14:32:57 +0000
parents fbb044f7af3d
children b35cb9abaed2
files pidgin/gtkblist.c
diffstat 1 files changed, 12 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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                             *
  *********************************************************/