From b279085b32f1a9ca6b036beeb19220d5c266d401 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Fri, 19 May 2017 17:51:23 +0200 Subject: [PATCH] ImportAssistant: Set the GtkPaned slider to half way --- src/ui/gui/psppire-import-assistant.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ui/gui/psppire-import-assistant.c b/src/ui/gui/psppire-import-assistant.c index f7454c5b3e..e5eaecbd56 100644 --- a/src/ui/gui/psppire-import-assistant.c +++ b/src/ui/gui/psppire-import-assistant.c @@ -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); } -- 2.30.2