X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fweight-cases-dialog.c;h=223568bf0e1a7e6af9afd21028301e206221ba87;hb=46b17a75377b7541db5149c561d8569b5472d3fe;hp=8ad7c7d0e0533d30a833deca582424b4c02d2a15;hpb=0bd0098aec2ee31d9460c8d4c1263d0b5ccc4324;p=pspp diff --git a/src/ui/gui/weight-cases-dialog.c b/src/ui/gui/weight-cases-dialog.c index 8ad7c7d0e0..223568bf0e 100644 --- a/src/ui/gui/weight-cases-dialog.c +++ b/src/ui/gui/weight-cases-dialog.c @@ -33,8 +33,6 @@ #define N_(msgid) msgid -/* FIXME: These shouldn't be here */ -#include #include "psppire-var-store.h" static void @@ -120,10 +118,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);