Data import dialog: GtkTable -> GtkGrid
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 22 Jun 2015 19:33:19 +0000 (21:33 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 22 Jun 2015 19:33:19 +0000 (21:33 +0200)
src/ui/gui/page-intro.c
src/ui/gui/text-data-import.ui

index 5005a448b1cd4c6ba1ec60d63d98492d2621f6d9..a7cda1b2208c7043a1d089c8b0cfc1152adfd5dd 100644 (file)
@@ -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);
index 1d532fb00ce8be08d7aa7bb8d71fdc0f57beb676..526e0fb93fccae607f7311a5febb2e548784a456 100644 (file)
@@ -42,10 +42,9 @@ The selected file contains N lines of text.  Only the first M of these will be s
                     <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
                     <property name="left_padding">12</property>
                     <child>
-                      <object class="GtkTable" id="button-table">
+                      <object class="GtkGrid" id="button-table">
                         <property name="visible">True</property>
-                        <property name="n_rows">3</property>
-                        <property name="n_columns">2</property>
+                       <property name="orientation">GTK_ORIENTATION_VERTICAL</property>
                         <child>
                           <object class="GtkRadioButton" id="import-all-cases">
                             <property name="visible">True</property>
@@ -54,9 +53,6 @@ The selected file contains N lines of text.  Only the first M of these will be s
                             <property name="active">True</property>
                             <property name="draw_indicator">True</property>
                           </object>
-                          <packing>
-                            <property name="x_options"></property>
-                          </packing>
                         </child>
                         <child>
                           <object class="GtkRadioButton" id="import-n-cases">
@@ -67,11 +63,6 @@ The selected file contains N lines of text.  Only the first M of these will be s
                             <property name="draw_indicator">True</property>
                             <property name="group">import-all-cases</property>
                           </object>
-                          <packing>
-                            <property name="top_attach">1</property>
-                            <property name="bottom_attach">2</property>
-                            <property name="x_options"></property>
-                          </packing>
                         </child>
                         <child>
                           <object class="GtkRadioButton" id="import-percent">
@@ -82,11 +73,6 @@ The selected file contains N lines of text.  Only the first M of these will be s
                             <property name="draw_indicator">True</property>
                             <property name="group">import-all-cases</property>
                           </object>
-                          <packing>
-                            <property name="top_attach">2</property>
-                            <property name="bottom_attach">3</property>
-                            <property name="x_options"></property>
-                          </packing>
                         </child>
                         <child>
                           <object class="GtkLabel" id="label1">
@@ -95,8 +81,8 @@ The selected file contains N lines of text.  Only the first M of these will be s
                             <property name="label" translatable="yes">All cases</property>
                           </object>
                           <packing>
-                            <property name="left_attach">1</property>
-                            <property name="right_attach">2</property>
+                           <property name="left-attach">1</property>
+                           <property name="top-attach">0</property>
                           </packing>
                         </child>
                         <child>