projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not rely on user to specify all variables in VARIABLE subcommand. Fixes bug 30389.
[pspp]
/
src
/
ui
/
gui
/
roc-dialog.c
diff --git
a/src/ui/gui/roc-dialog.c
b/src/ui/gui/roc-dialog.c
index 4d1a7d30b18ad435bf2b54decf5b755f48237269..45972d547640d19a7fa1c8437efecebb66239ca0 100644
(file)
--- a/
src/ui/gui/roc-dialog.c
+++ b/
src/ui/gui/roc-dialog.c
@@
-119,13
+119,12
@@
on_curve_button_toggle (GtkCheckButton *curve, struct roc *rd)
/* Pops up the Roc dialog box */
void
/* Pops up the Roc dialog box */
void
-roc_dialog (
GObject *o, gpointer data
)
+roc_dialog (
PsppireDataWindow *de
)
{
struct roc rd;
gint response;
GtkBuilder *xml = builder_new ("roc.ui");
{
struct roc rd;
gint response;
GtkBuilder *xml = builder_new ("roc.ui");
- PsppireDataWindow *de = PSPPIRE_DATA_WINDOW (data);
PsppireVarStore *vs;
GtkWidget *dialog = get_widget_assert (xml, "roc-dialog");
PsppireVarStore *vs;
GtkWidget *dialog = get_widget_assert (xml, "roc-dialog");
@@
-155,6
+154,9
@@
roc_dialog (GObject *o, gpointer data)
psppire_dialog_set_valid_predicate (PSPPIRE_DIALOG (dialog),
dialog_state_valid, &rd);
psppire_dialog_set_valid_predicate (PSPPIRE_DIALOG (dialog),
dialog_state_valid, &rd);
+ psppire_selector_set_allow (PSPPIRE_SELECTOR (get_widget_assert (xml, "dep-selector")),
+ numeric_only);
+
response = psppire_dialog_run (PSPPIRE_DIALOG (dialog));
switch (response)
response = psppire_dialog_run (PSPPIRE_DIALOG (dialog));
switch (response)
@@
-172,7
+174,7
@@
roc_dialog (GObject *o, gpointer data)
case PSPPIRE_RESPONSE_PASTE:
{
gchar *syntax = generate_syntax (&rd);
case PSPPIRE_RESPONSE_PASTE:
{
gchar *syntax = generate_syntax (&rd);
- paste_syntax_
in_new
_window (syntax);
+ paste_syntax_
to
_window (syntax);
g_free (syntax);
}
g_free (syntax);
}