X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpage-intro.c;h=6db2bee688ffe6fe2b73461a2682ef8e674ae991;hb=03a7b96a587a58bda342b4eb5ce5f935880ba2b7;hp=5005a448b1cd4c6ba1ec60d63d98492d2621f6d9;hpb=2fd4306b04da6c8fc982d81beacc1f2e3573307b;p=pspp diff --git a/src/ui/gui/page-intro.c b/src/ui/gui/page-intro.c index 5005a448b1..6db2bee688 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); @@ -186,11 +186,11 @@ void intro_append_syntax (const struct intro_page *p, struct string *s) { if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (p->n_cases_button))) - ds_put_format (s, " /IMPORTCASES=FIRST %d\n", + ds_put_format (s, " /IMPORTCASE=FIRST %d\n", gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (p->n_cases_spin))); else if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (p->percent_button))) - ds_put_format (s, " /IMPORTCASES=PERCENT %d\n", + ds_put_format (s, " /IMPORTCASE=PERCENT %d\n", gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (p->percent_spin))); else - ds_put_cstr (s, " /IMPORTCASES=ALL\n"); + ds_put_cstr (s, " /IMPORTCASE=ALL\n"); }