X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fvariable-info-dialog.c;h=2fdf2df87440ce8beec883aa65aab02dce988123;hb=66153a44d861ccddf6a176ec5a94ffb959232ad6;hp=afa96615d5f9a1405c0c4a7c9c9b65e15a0a52f4;hpb=729b96a6bd9342c45e6f65a113fd87c70da85b0a;p=pspp-builds.git diff --git a/src/ui/gui/variable-info-dialog.c b/src/ui/gui/variable-info-dialog.c index afa96615..2fdf2df8 100644 --- a/src/ui/gui/variable-info-dialog.c +++ b/src/ui/gui/variable-info-dialog.c @@ -65,8 +65,7 @@ populate_text (PsppireDictView *treeview, gpointer data) if ( var == NULL) return; - g_object_get (treeview, - "dictionary", &dict, + g_object_get (treeview, "dictionary", &dict, NULL); gstring = g_string_sized_new (200); @@ -113,7 +112,7 @@ populate_text (PsppireDictView *treeview, gpointer data) { const struct val_lab *vl = labels[i]; gchar *const vstr = - value_to_text (vl->value, dict->dict, *var_get_print_format (var)); + value_to_text (vl->value, dict, *var_get_print_format (var)); g_string_append_printf (gstring, _("%s %s\n"), vstr, val_lab_get_label (vl)); @@ -159,13 +158,14 @@ variable_info_dialog (GObject *o, gpointer data) GtkWidget *textview = get_widget_assert (xml, "textview1"); PsppireVarStore *vs = NULL; + PsppireDict *dict = NULL; g_object_get (de->data_editor, "var-store", &vs, NULL); gtk_window_set_transient_for (GTK_WINDOW (dialog), GTK_WINDOW (de)); - g_object_set (treeview, - "dictionary", vs->dict, + g_object_get (vs, "dictionary", &dict, NULL); + g_object_set (treeview, "dictionary", dict, "selection-mode", GTK_SELECTION_SINGLE, NULL);