Make the default view the variable view instead of the data view
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 4 Sep 2017 06:45:07 +0000 (08:45 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 4 Sep 2017 06:45:07 +0000 (08:45 +0200)
src/ui/gui/psppire-data-window.c

index b46cddd1f259b01d9a99d68566fa27a1caae9561..9b90930edd6cf149bf822e3fa4477d4689afc4d3 100644 (file)
@@ -1053,10 +1053,9 @@ connect_action_to_menuitem (GActionMap *map, const gchar *action_name, GtkWidget
 
 
 static void
-set_data_page (PsppireDataWindow *dw)
+on_realize (PsppireDataWindow *dw)
 {
   gtk_notebook_set_current_page (GTK_NOTEBOOK (dw->data_editor), 1);
-  gtk_notebook_set_current_page (GTK_NOTEBOOK (dw->data_editor), 0);
 }
 
 
@@ -1453,7 +1452,7 @@ psppire_data_window_finish_init (PsppireDataWindow *de,
     PSPPIRE_DATA_EDITOR (psppire_data_editor_new (de->dict, de->data_store));
 
   g_signal_connect (de, "realize",
-                    G_CALLBACK (set_data_page), de);
+                    G_CALLBACK (on_realize), de);
 
   g_signal_connect_swapped (de->data_store, "case-changed",
                            G_CALLBACK (set_unsaved), de);