union value v;
v.f = 1234.56;
- sample_text = value_to_text (v, dialog->fmt_l);
+ sample_text = value_to_text (v, NULL, dialog->fmt_l);
gtk_label_set_text (GTK_LABEL (dialog->label_psample), sample_text);
g_free (sample_text);
v.f = -v.f;
- sample_text = value_to_text (v, dialog->fmt_l);
+ sample_text = value_to_text (v, NULL, dialog->fmt_l);
gtk_label_set_text (GTK_LABEL (dialog->label_nsample), sample_text);
g_free (sample_text);
}
g_object_unref (list_store);
g_signal_connect (dialog->date_format_treeview, "cursor-changed",
- GTK_SIGNAL_FUNC (set_format_from_treeview), dialog);
+ G_CALLBACK (set_format_from_treeview), dialog);
/* populate the dollar treeview */
g_signal_connect (dialog->dollar_treeview,
"cursor-changed",
- GTK_SIGNAL_FUNC (set_format_from_treeview), dialog);
+ G_CALLBACK (set_format_from_treeview), dialog);
g_signal_connect_swapped (dialog->dollar_treeview,
"cursor-changed",
- GTK_SIGNAL_FUNC (update_width_decimals), dialog);
+ G_CALLBACK (update_width_decimals), dialog);
/* populate the custom treeview */
g_signal_connect (dialog->custom_treeview,
"cursor-changed",
- GTK_SIGNAL_FUNC (set_format_type_from_treeview), dialog);
+ G_CALLBACK (set_format_type_from_treeview), dialog);
g_signal_connect (dialog->custom_treeview,
"cursor-changed",
- GTK_SIGNAL_FUNC (preview_custom), dialog);
+ G_CALLBACK (preview_custom), dialog);
g_signal_connect (dialog->entry_width,
"changed",
- GTK_SIGNAL_FUNC (preview_custom), dialog);
+ G_CALLBACK (preview_custom), dialog);
g_signal_connect (dialog->entry_decimals,
"changed",
- GTK_SIGNAL_FUNC (preview_custom), dialog);
+ G_CALLBACK (preview_custom), dialog);
/* Connect to the OK button */