X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=blobdiff_plain;f=src%2Fui%2Fgui%2Fvariable-info-dialog.c;h=2fdf2df87440ce8beec883aa65aab02dce988123;hp=178a834c7a0d8357c642997c649f81f9612488b6;hb=66153a44d861ccddf6a176ec5a94ffb959232ad6;hpb=d8659cda7d193dd3e6e035cd0b1b40493d360f0b diff --git a/src/ui/gui/variable-info-dialog.c b/src/ui/gui/variable-info-dialog.c index 178a834c..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); @@ -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);