From: John Darrington Date: Wed, 19 Apr 2017 12:29:21 +0000 (+0200) Subject: Update the datum entry when the selection changes X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3321d6ba64c5dc771c1d5a1833480fb4a6aaa795;p=pspp Update the datum entry when the selection changes --- diff --git a/src/ui/gui/psppire-data-editor.c b/src/ui/gui/psppire-data-editor.c index 4228c89cb4..797db1f97d 100644 --- a/src/ui/gui/psppire-data-editor.c +++ b/src/ui/gui/psppire-data-editor.c @@ -443,6 +443,10 @@ psppire_data_editor_set_property (GObject *object, g_object_set (de->data_sheet, "data-model", de->data_store, NULL); psppire_data_editor_refresh_model (de); + g_signal_connect_swapped (de->data_sheet, "selection-changed", + G_CALLBACK (refresh_entry), + de); + g_signal_connect_swapped (de->data_sheet, "value-changed", G_CALLBACK (change_data_value), de->data_store);