From: John Darrington Date: Tue, 24 Jul 2007 12:45:06 +0000 (+0000) Subject: Added an extra call to data_var_select and a comment to explain why. X-Git-Tag: v0.6.0~356 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68cf9cb6840db8f325bd94e00accb5e8f80822c5;hp=db1aff56dc8e6d4fb962162486556907b729067a;p=pspp-builds.git Added an extra call to data_var_select and a comment to explain why. --- 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;