From 96002e4309464b3d5f7f6aacbc856eefb1e7431c Mon Sep 17 00:00:00 2001 From: John Darrington Date: Mon, 22 Jun 2015 21:33:19 +0200 Subject: [PATCH] Data import dialog: GtkTable -> GtkGrid --- src/ui/gui/page-intro.c | 12 ++++++------ src/ui/gui/text-data-import.ui | 22 ++++------------------ 2 files changed, 10 insertions(+), 24 deletions(-) diff --git a/src/ui/gui/page-intro.c b/src/ui/gui/page-intro.c index 5005a448b1..a7cda1b220 100644 --- a/src/ui/gui/page-intro.c +++ b/src/ui/gui/page-intro.c @@ -93,17 +93,17 @@ intro_page_create (struct import_assistant *ia) table = get_widget_assert (builder, "button-table"); - gtk_table_attach_defaults (GTK_TABLE (table), hbox_n_cases, - 1, 2, - 1, 2); + gtk_grid_attach (GTK_GRID (table), hbox_n_cases, + 1, 1, + 1, 1); p->percent_spin = gtk_spin_button_new_with_range (0, 100, 10); hbox_percent = psppire_scanf_new (_("Only the first %3d %% of file (approximately)"), &p->percent_spin); - gtk_table_attach_defaults (GTK_TABLE (table), hbox_percent, - 1, 2, - 2, 3); + gtk_grid_attach (GTK_GRID (table), hbox_percent, + 1, 2, + 1, 1); p->page = add_page_to_assistant (ia, get_widget_assert (builder, "Intro"), GTK_ASSISTANT_PAGE_INTRO); diff --git a/src/ui/gui/text-data-import.ui b/src/ui/gui/text-data-import.ui index 1d532fb00c..526e0fb93f 100644 --- a/src/ui/gui/text-data-import.ui +++ b/src/ui/gui/text-data-import.ui @@ -42,10 +42,9 @@ The selected file contains N lines of text. Only the first M of these will be s GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK 12 - + True - 3 - 2 + GTK_ORIENTATION_VERTICAL True @@ -54,9 +53,6 @@ The selected file contains N lines of text. Only the first M of these will be s True True - - - @@ -67,11 +63,6 @@ The selected file contains N lines of text. Only the first M of these will be s True import-all-cases - - 1 - 2 - - @@ -82,11 +73,6 @@ The selected file contains N lines of text. Only the first M of these will be s True import-all-cases - - 2 - 3 - - @@ -95,8 +81,8 @@ The selected file contains N lines of text. Only the first M of these will be s All cases - 1 - 2 + 1 + 0 -- 2.30.2