pidgin/gtkblist.c

changeset 21457
9edb9c932827
parent 21456
7d52da126458
child 21458
fc804a8ee8e0
--- 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                             *
  *********************************************************/

mercurial