From: John Darrington Date: Sat, 28 Mar 2009 11:46:46 +0000 (+0900) Subject: Pass dict to name_to_string and label_to_string. X-Git-Tag: v0.7.3~196 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a046ee9e84cf029b92a0c364c26a0b1fe4a24df4;p=pspp-builds.git Pass dict to name_to_string and label_to_string. Oops, forgot to replace these NULLs. --- diff --git a/src/ui/gui/variable-info-dialog.c b/src/ui/gui/variable-info-dialog.c index a53d6a5c..3b3367f7 100644 --- a/src/ui/gui/variable-info-dialog.c +++ b/src/ui/gui/variable-info-dialog.c @@ -70,7 +70,7 @@ populate_text (PsppireDictView *treeview, gpointer data) GString *gstring; PsppireDict *dict; - GtkTextBuffer *textbuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW(data)); + GtkTextBuffer *textbuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (data)); const struct variable *var = psppire_dict_view_get_selected_variable (treeview); @@ -82,13 +82,13 @@ populate_text (PsppireDictView *treeview, gpointer data) NULL); gstring = g_string_sized_new (200); - text = name_to_string (var, NULL); + text = name_to_string (var, dict); g_string_assign (gstring, text); g_free (text); g_string_append (gstring, "\n"); - text = label_to_string (var, NULL); + text = label_to_string (var, dict); g_string_append_printf (gstring, _("Label: %s\n"), text); g_free (text);