From 33ceb3560851d7164012ed9d0cbe1f31ab9bbb87 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 6 Apr 2017 10:50:36 +0200 Subject: [PATCH] Use g_object_set rather than obsolete setter function --- src/ui/gui/psppire-data-editor.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/ui/gui/psppire-data-editor.c b/src/ui/gui/psppire-data-editor.c index 08463326ad..52493821d7 100644 --- a/src/ui/gui/psppire-data-editor.c +++ b/src/ui/gui/psppire-data-editor.c @@ -954,9 +954,10 @@ psppire_data_editor_init (PsppireDataEditor *de) g_signal_connect (de->data_sheet, "selection-changed", G_CALLBACK (set_menu_items_sensitivity), de); - jmd_sheet_set_conversion_func (JMD_SHEET (de->data_sheet), - psppire_data_store_value_to_string, - myreversefunc); + g_object_set (de->data_sheet, + "forward-conversion", psppire_data_store_value_to_string, + "reverse-conversion", myreversefunc, + NULL); GtkWidget *data_button = jmd_sheet_get_button (JMD_SHEET (de->data_sheet)); gtk_button_set_label (GTK_BUTTON (data_button), _("Case")); @@ -982,8 +983,9 @@ psppire_data_editor_init (PsppireDataEditor *de) "select-renderer-func", select_renderer_func, NULL); - jmd_sheet_set_conversion_func (JMD_SHEET (de->var_sheet), - var_sheet_data_to_string, NULL); + g_object_set (de->var_sheet, + "forward-conversion", var_sheet_data_to_string, + NULL); g_signal_connect (de->var_sheet, "row-header-pressed", G_CALLBACK (show_variables_row_popup), de); -- 2.30.2