- gtk_window_set_transient_for(GTK_WINDOW(dialog->window),
- GTK_WINDOW(get_widget_assert(xml, "data_editor")));
-
- dialog->radioButton[BUTTON_NUMERIC] =
- get_widget_assert(xml,"radiobutton1");
- dialog->radioButton[BUTTON_COMMA] =
- get_widget_assert(xml,"radiobutton2");
- dialog->radioButton[BUTTON_DOT] =
- get_widget_assert(xml,"radiobutton3");
- dialog->radioButton[BUTTON_SCIENTIFIC] =
- get_widget_assert(xml,"radiobutton4");
- dialog->radioButton[BUTTON_DATE] =
- get_widget_assert(xml,"radiobutton5");
- dialog->radioButton[BUTTON_DOLLAR] =
- get_widget_assert(xml,"radiobutton6");
- dialog->radioButton[BUTTON_CUSTOM] =
- get_widget_assert(xml,"radiobutton7");
- dialog->radioButton[BUTTON_STRING] =
- get_widget_assert(xml,"radiobutton8");
-
-
- dialog->date_format_list = get_widget_assert(xml, "scrolledwindow4");
- dialog->width_decimals = get_widget_assert(xml, "width_decimals");
- dialog->label_decimals = get_widget_assert(xml, "decimals_label");
- dialog->entry_decimals = get_widget_assert(xml, "decimals_entry");
-
- dialog->label_psample = get_widget_assert(xml, "psample_label");
- dialog->label_nsample = get_widget_assert(xml, "nsample_label");
-
-
- dialog->entry_width = get_widget_assert(xml,"width_entry");
-
- dialog->custom_currency_hbox = get_widget_assert(xml,
+ obj = G_OBJECT_CLASS (psppire_var_type_dialog_parent_class)->constructor (
+ type, n_properties, properties);
+ dialog = PSPPIRE_VAR_TYPE_DIALOG (obj);
+
+ xml = builder_new ("var-type-dialog.ui");
+
+ content_area = GTK_CONTAINER (PSPPIRE_DIALOG (dialog)->box);
+ gtk_container_add (GTK_CONTAINER (content_area),
+ get_widget_assert (xml, "var-type-dialog"));
+
+ dialog->active_button = -1;
+
+ g_signal_connect (dialog, "delete-event",
+ G_CALLBACK (gtk_widget_hide_on_delete), NULL);
+
+ dialog->radioButton[BUTTON_NUMERIC] =
+ get_widget_assert (xml,"radiobutton1");
+ dialog->radioButton[BUTTON_COMMA] =
+ get_widget_assert (xml,"radiobutton2");
+ dialog->radioButton[BUTTON_DOT] =
+ get_widget_assert (xml,"radiobutton3");
+ dialog->radioButton[BUTTON_SCIENTIFIC] =
+ get_widget_assert (xml,"radiobutton4");
+ dialog->radioButton[BUTTON_DATE] =
+ get_widget_assert (xml,"radiobutton5");
+ dialog->radioButton[BUTTON_DOLLAR] =
+ get_widget_assert (xml,"radiobutton6");
+ dialog->radioButton[BUTTON_CUSTOM] =
+ get_widget_assert (xml,"radiobutton7");
+ dialog->radioButton[BUTTON_STRING] =
+ get_widget_assert (xml,"radiobutton8");
+
+
+ dialog->date_format_list = get_widget_assert (xml, "scrolledwindow4");
+ dialog->width_decimals = get_widget_assert (xml, "width_decimals");
+ dialog->label_decimals = get_widget_assert (xml, "decimals_label");
+ dialog->entry_decimals = get_widget_assert (xml, "decimals_entry");
+ dialog->adj_decimals = gtk_spin_button_get_adjustment (
+ GTK_SPIN_BUTTON (dialog->entry_decimals));
+
+ dialog->label_psample = get_widget_assert (xml, "psample_label");
+ dialog->label_nsample = get_widget_assert (xml, "nsample_label");
+
+
+ dialog->entry_width = get_widget_assert (xml,"width_entry");
+ dialog->adj_width = gtk_spin_button_get_adjustment (
+ GTK_SPIN_BUTTON (dialog->entry_width));
+ dialog->custom_currency_hbox = get_widget_assert (xml,