Remove unused GObject pointer from dialog functions and update signal connect functio...
[pspp-builds.git] / src / ui / gui / roc-dialog.c
index 4d1a7d30b18ad435bf2b54decf5b755f48237269..b82d3fca955c1ce7ce39c1fa42e2cf094af7433e 100644 (file)
@@ -119,7 +119,7 @@ on_curve_button_toggle  (GtkCheckButton *curve, struct roc *rd)
 
 /* Pops up the Roc dialog box */
 void
-roc_dialog (GObject *o, gpointer data)
+roc_dialog (gpointer data)
 {
   struct roc rd;
   gint response;
@@ -155,6 +155,9 @@ roc_dialog (GObject *o, gpointer data)
   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)