From: John Darrington Date: Wed, 25 Feb 2009 01:20:14 +0000 (+0900) Subject: Change argument type of pspp_window_register_foreach X-Git-Tag: sav-api~776 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a92e0e0463ae192f86a7ccc924380a171e6f5da;p=pspp Change argument type of pspp_window_register_foreach --- diff --git a/src/ui/gui/psppire-window-register.c b/src/ui/gui/psppire-window-register.c index 07ac2825aa..2052adcb6d 100644 --- a/src/ui/gui/psppire-window-register.c +++ b/src/ui/gui/psppire-window-register.c @@ -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 diff --git a/src/ui/gui/psppire-window-register.h b/src/ui/gui/psppire-window-register.h index afc24a3dd2..940d724756 100644 --- a/src/ui/gui/psppire-window-register.h +++ b/src/ui/gui/psppire-window-register.h @@ -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);