projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed the visibility predicate from the row/column models.
[pspp-builds.git]
/
src
/
ui
/
gui
/
psppire-var-sheet.c
diff --git
a/src/ui/gui/psppire-var-sheet.c
b/src/ui/gui/psppire-var-sheet.c
index 256f3c93930a66dcbaf849ed2234f306414ad81b..9ad915157146e6f7cac9efc667d59670e5c64ecd 100644
(file)
--- a/
src/ui/gui/psppire-var-sheet.c
+++ b/
src/ui/gui/psppire-var-sheet.c
@@
-251,12
+251,12
@@
change_measure (GtkComboBox *cb,
}
}
-
+/* Moves the focus to a new cell.
+ Returns TRUE iff the move should be disallowed */
static gboolean
traverse_cell_callback (GtkSheet *sheet,
gint row, gint column,
static gboolean
traverse_cell_callback (GtkSheet *sheet,
gint row, gint column,
- gint *new_row, gint *new_column
- )
+ gint *new_row, gint *new_column)
{
PsppireVarSheet *var_sheet = PSPPIRE_VAR_SHEET (sheet);
PsppireVarStore *var_store = PSPPIRE_VAR_STORE (gtk_sheet_get_model (sheet));
{
PsppireVarSheet *var_sheet = PSPPIRE_VAR_SHEET (sheet);
PsppireVarStore *var_store = PSPPIRE_VAR_STORE (gtk_sheet_get_model (sheet));
@@
-264,7
+264,7
@@
traverse_cell_callback (GtkSheet *sheet,
gint n_vars = psppire_var_store_get_var_cnt (var_store);
if (*new_row >= n_vars && !var_sheet->may_create_vars)
gint n_vars = psppire_var_store_get_var_cnt (var_store);
if (*new_row >= n_vars && !var_sheet->may_create_vars)
- return
FALS
E;
+ return
TRU
E;
if ( row == n_vars && *new_row >= n_vars)
{
if ( row == n_vars && *new_row >= n_vars)
{
@@
-273,11
+273,11
@@
traverse_cell_callback (GtkSheet *sheet,
const gchar *name = gtk_entry_get_text (entry);
if (! psppire_dict_check_name (var_store->dict, name, TRUE))
const gchar *name = gtk_entry_get_text (entry);
if (! psppire_dict_check_name (var_store->dict, name, TRUE))
- return
FALS
E;
+ return
TRU
E;
psppire_dict_insert_variable (var_store->dict, row, name);
psppire_dict_insert_variable (var_store->dict, row, name);
- return
TRU
E;
+ return
FALS
E;
}
/* If the destination cell is outside the current variables, then
}
/* If the destination cell is outside the current variables, then
@@
-291,12
+291,11
@@
traverse_cell_callback (GtkSheet *sheet,
psppire_dict_insert_variable (var_store->dict, i, NULL);
}
psppire_dict_insert_variable (var_store->dict, i, NULL);
}
- return
TRU
E;
+ return
FALS
E;
}
}
-
/*
Callback whenever the pointer leaves a cell on the var sheet.
*/
/*
Callback whenever the pointer leaves a cell on the var sheet.
*/