Change argument type of pspp_window_register_foreach
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 25 Feb 2009 01:20:14 +0000 (10:20 +0900)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 25 Feb 2009 01:20:14 +0000 (10:20 +0900)
src/ui/gui/psppire-window-register.c
src/ui/gui/psppire-window-register.h

index 07ac2825aaec9fe6d90b6549eaa94559bf3305af..2052adcb6d3e503a9f360d20268aa65a3662bc97 100644 (file)
@@ -162,9 +162,10 @@ psppire_window_register_lookup (PsppireWindowRegister *wr, const gchar *name)
 }
 
 void
-psppire_window_register_foreach (PsppireWindowRegister *wr, GHFunc func, PsppireWindow *win)
+psppire_window_register_foreach (PsppireWindowRegister *wr,
+                                GHFunc func, gpointer data)
 {
-  g_hash_table_foreach (wr->name_table, func, win);
+  g_hash_table_foreach (wr->name_table, func, data);
 }
 
 static void
index afc24a3dd2910a4ba167795cc861a9beea39ff85..940d724756dca8d4432e0d13da747bb7dfd880e8 100644 (file)
@@ -82,7 +82,8 @@ void psppire_window_register_remove (PsppireWindowRegister *wr, const gchar *nam
 PsppireWindow *psppire_window_register_lookup (PsppireWindowRegister *wr, const gchar *name);
 
 
-void psppire_window_register_foreach (PsppireWindowRegister *wr, GHFunc func, PsppireWindow *);
+void psppire_window_register_foreach (PsppireWindowRegister *wr, GHFunc func,
+                                     gpointer);
 
 void psppire_window_register_minimise_all (PsppireWindowRegister *wr);