ImportAssistant: Set the GtkPaned slider to half way
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 19 May 2017 15:51:23 +0000 (17:51 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 19 May 2017 15:51:23 +0000 (17:51 +0200)
src/ui/gui/psppire-import-assistant.c

index f7454c5b3e230a1683a7ce157a4bede2fcd4a264..e5eaecbd563ac16bde69bbcb44496d890a24aaab 100644 (file)
@@ -1883,9 +1883,9 @@ foo (struct dictionary *dict, void *aux)
 
 
   PsppireDataStore *store = NULL;
-    
+
   g_object_get (ia->data_sheet, "data-model", &store, NULL);
-  
+
   psppire_data_store_set_reader (store, reader);
 }
 
@@ -1922,6 +1922,15 @@ prepare_formats_page (PsppireImportAssistant *ia)
 
   g_object_set (ia->data_sheet, "data-model", store, NULL);
 
+
+  gint pmax;
+  g_object_get (get_widget_assert (ia->builder, "vpaned1"),
+               "max-position", &pmax, NULL);
+
+
+  g_object_set (get_widget_assert (ia->builder, "vpaned1"),
+               "position", pmax / 2, NULL);
+
   gtk_widget_show (ia->paste_button);
 }