From: John Darrington Date: Fri, 19 May 2017 15:51:23 +0000 (+0200) Subject: ImportAssistant: Set the GtkPaned slider to half way X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=b279085b32f1a9ca6b036beeb19220d5c266d401 ImportAssistant: Set the GtkPaned slider to half way --- 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); }