projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug in oneway /descriptives subcommand vs. weights.
[pspp]
/
src
/
ui
/
gui
/
psppire-window-register.c
diff --git
a/src/ui/gui/psppire-window-register.c
b/src/ui/gui/psppire-window-register.c
index dfa46c654cc24c7a6299079f0ac30ad9b61c617f..2052adcb6d3e503a9f360d20268aa65a3662bc97 100644
(file)
--- 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
}
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
}
static void
@@
-187,3
+188,10
@@
psppire_window_register_new (void)
{
return g_object_new (psppire_window_register_get_type (), NULL);
}
{
return g_object_new (psppire_window_register_get_type (), NULL);
}
+
+
+gint
+psppire_window_register_n_items (PsppireWindowRegister *wr)
+{
+ return g_hash_table_size (wr->name_table);
+}