X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fcomments-dialog.c;h=e4304db4db75c24d72f26942ff741771dfff4a81;hb=f82952d22e200e1b35cea23545857a2cf2f02c66;hp=8e017a22d91d791eb9cf6f65614c6d4d1e671f19;hpb=c2ef0c78e3b43419530c7b19d225ed7db54c5228;p=pspp-builds.git diff --git a/src/ui/gui/comments-dialog.c b/src/ui/gui/comments-dialog.c index 8e017a22..e4304db4 100644 --- a/src/ui/gui/comments-dialog.c +++ b/src/ui/gui/comments-dialog.c @@ -106,10 +106,9 @@ comments_dialog (GObject *o, gpointer data) GtkWidget *label = get_widget_assert (xml, "column-number-label"); GtkTextBuffer *buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (textview)); - 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);