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=67ab7839678c0f8aa12459ce5a585a5636f20196;hp=faa54a7c9dbc55e9eabafb2cfa6ceedf5f97b220;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp diff --git a/src/ui/gui/weight-cases-dialog.c b/src/ui/gui/weight-cases-dialog.c index faa54a7c9d..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); @@ -144,7 +141,8 @@ weight_cases_dialog (GObject *o, gpointer data) source, entry, insert_source_row_into_entry, - is_currently_in_entry + is_currently_in_entry, + NULL );