Added an extra call to data_var_select and a comment to explain why.
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 24 Jul 2007 12:45:06 +0000 (12:45 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 24 Jul 2007 12:45:06 +0000 (12:45 +0000)
src/ui/gui/data-editor.c

index 2c84901feeb33c4fa610d69444d91f3ad4066675..94094dff93ba17ed58c9b42428b06b4bcbeb3b5c 100644 (file)
@@ -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;