X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fweight-cases-dialog.c;fp=src%2Fui%2Fgui%2Fweight-cases-dialog.c;h=f921e2cc3956364fb7ec9e5058d9eb7dca6ff43f;hb=f82952d22e200e1b35cea23545857a2cf2f02c66;hp=8ad7c7d0e0533d30a833deca582424b4c02d2a15;hpb=c2ef0c78e3b43419530c7b19d225ed7db54c5228;p=pspp-builds.git diff --git a/src/ui/gui/weight-cases-dialog.c b/src/ui/gui/weight-cases-dialog.c index 8ad7c7d0..f921e2cc 100644 --- a/src/ui/gui/weight-cases-dialog.c +++ b/src/ui/gui/weight-cases-dialog.c @@ -120,10 +120,9 @@ weight_cases_dialog (GObject *o, gpointer data) GtkWidget *radiobutton2 = get_widget_assert (xml, "radiobutton2"); GtkWidget *status = get_widget_assert (xml, "weight-status-label"); - GtkSheet *var_sheet = - GTK_SHEET (get_widget_assert (de->xml, "variable_sheet")); + PsppireVarStore *vs = NULL; - PsppireVarStore *vs = PSPPIRE_VAR_STORE (gtk_sheet_get_model (var_sheet)); + g_object_get (de->data_editor, "var-store", &vs, NULL); gtk_window_set_transient_for (GTK_WINDOW (dialog), de->parent.window);