projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved the encapsulation of PsppireCaseFile
[pspp]
/
src
/
ui
/
gui
/
psppire-dict.c
diff --git
a/src/ui/gui/psppire-dict.c
b/src/ui/gui/psppire-dict.c
index b32d0677ba9b04ab22663c312c73f3ec7e4b6017..20bc2fc32dfeccdd8d136ef14bce38fa83ea54ce 100644
(file)
--- a/
src/ui/gui/psppire-dict.c
+++ b/
src/ui/gui/psppire-dict.c
@@
-281,7
+281,15
@@
psppire_dict_new_from_dict (struct dictionary *d)
void
psppire_dict_replace_dictionary (PsppireDict *dict, struct dictionary *d)
{
void
psppire_dict_replace_dictionary (PsppireDict *dict, struct dictionary *d)
{
+ struct variable *var = dict_get_weight (d);
dict->dict = d;
dict->dict = d;
+
+ weight_changed_callback (d, var ? var_get_dict_index (var) : -1, dict);
+
+ var = dict_get_filter (d);
+ filter_changed_callback (d, var ? var_get_dict_index (var) : -1, dict);
+
+ split_changed_callback (d, dict);
}
}
@@
-745,7
+753,7
@@
psppire_dict_rename_var (PsppireDict *dict, struct variable *v,
{
if ( ! var_is_valid_name (name, false))
return FALSE;
{
if ( ! var_is_valid_name (name, false))
return FALSE;
-
+
dict_rename_var (dict->dict, v, name);
return TRUE;
dict_rename_var (dict->dict, v, name);
return TRUE;