From 68cf9cb6840db8f325bd94e00accb5e8f80822c5 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Tue, 24 Jul 2007 12:45:06 +0000 Subject: [PATCH] Added an extra call to data_var_select and a comment to explain why. --- src/ui/gui/data-editor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/gui/data-editor.c b/src/ui/gui/data-editor.c index 2c84901f..94094dff 100644 --- a/src/ui/gui/data-editor.c +++ b/src/ui/gui/data-editor.c @@ -629,6 +629,10 @@ new_data_editor (void) g_signal_connect (G_OBJECT (data_sheet), "button-event-row", G_CALLBACK (popup_cases_menu), de); + /* The "switch-page" signal does get emitted unless the page actually + changes. But the state is indeterminate at startup. Therefore we + must explicitly change it to one state, then the other */ + data_editor_select_sheet (de, PAGE_VAR_SHEET); data_editor_select_sheet (de, PAGE_DATA_SHEET); return de; -- 2.30.2