Using NULL instead of 0 is better modern C style.
gchar *
value_to_text (union value v, const PsppireDict *dict, struct fmt_spec format)
{
gchar *
value_to_text (union value v, const PsppireDict *dict, struct fmt_spec format)
{
s = data_out (&v, dict_get_encoding (dict->dict), &format);
g_strchug (s);
s = data_out (&v, dict_get_encoding (dict->dict), &format);
g_strchug (s);
/* PSPPIRE - a graphical user interface for PSPP.
/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2005, 2009, 2011 Free Software Foundation
+ Copyright (C) 2005, 2009, 2010, 2011 Free Software Foundation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
val_labs_destroy (dialog->labs);
val_labs_destroy (dialog->labs);
gtk_widget_hide (dialog->window);
gtk_widget_hide (dialog->window);
{
val_labs_destroy (dialog->labs);
{
val_labs_destroy (dialog->labs);
gtk_widget_hide (dialog->window);
}
gtk_widget_hide (dialog->window);
}
g_signal_connect (dialog->add_button, "clicked",
G_CALLBACK (on_add), dialog);
g_signal_connect (dialog->add_button, "clicked",
G_CALLBACK (on_add), dialog);
if ( mv_has_value (miss))
{
if ( mv_has_value (miss))
{
ss = value_to_text (*mv_get_value (miss, 0), dict, *fmt);
ss = value_to_text (*mv_get_value (miss, 0), dict, *fmt);
static void
populate_text (PsppireDictView *treeview, gpointer data)
{
static void
populate_text (PsppireDictView *treeview, gpointer data)
{
GString *gstring;
PsppireDict *dict;
GString *gstring;
PsppireDict *dict;