PsppireDialogActionIndepSamples: Replace GtkTable with GtkGrid
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 19 Jul 2015 11:13:18 +0000 (13:13 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 19 Jul 2015 11:13:18 +0000 (13:13 +0200)
src/ui/gui/indep-samples.ui
src/ui/gui/psppire-dialog-action-indep-samps.c

index 3266ec3a86a858d9f10b94a83332daeb1522acf3..a07d65720b1dd5a3f70000fb0676ec2c92146895 100644 (file)
         <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
         <property name="spacing">2</property>
         <child>
-          <object class="GtkTable" id="table1">
+          <object class="GtkGrid" id="table1">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
-            <property name="n_rows">3</property>
-            <property name="n_columns">2</property>
-            <property name="column_spacing">5</property>
             <property name="row_spacing">5</property>
-            <child>
-              <placeholder/>
-            </child>
+            <property name="column_spacing">5</property>
             <child>
               <object class="GtkRadioButton" id="radiobutton3">
                 <property name="visible">True</property>
@@ -37,7 +32,8 @@
                 <property name="draw_indicator">True</property>
               </object>
               <packing>
-                <property name="x_options"/>
+                <property name="left_attach">0</property>
+                <property name="top_attach">0</property>
               </packing>
             </child>
             <child>
               </object>
               <packing>
                 <property name="left_attach">1</property>
-                <property name="right_attach">2</property>
                 <property name="top_attach">1</property>
-                <property name="bottom_attach">2</property>
-                <property name="y_options">GTK_EXPAND</property>
               </packing>
             </child>
             <child>
               </object>
               <packing>
                 <property name="left_attach">1</property>
-                <property name="right_attach">2</property>
                 <property name="top_attach">2</property>
-                <property name="bottom_attach">3</property>
-                <property name="y_options"/>
-                <property name="y_padding">5</property>
               </packing>
             </child>
             <child>
               </object>
               <packing>
                 <property name="left_attach">1</property>
-                <property name="right_attach">2</property>
-                <property name="y_options"/>
+                <property name="top_attach">0</property>
               </packing>
             </child>
             <child>
                 <property name="group">radiobutton3</property>
               </object>
               <packing>
+                <property name="left_attach">0</property>
                 <property name="top_attach">2</property>
-                <property name="bottom_attach">3</property>
-                <property name="x_options"/>
-                <property name="y_options"/>
               </packing>
             </child>
+            <child>
+              <placeholder/>
+            </child>
           </object>
           <packing>
             <property name="expand">True</property>
index df3805114938cbe4bebd6f169ce88d13bfedb717..f91c03aa9c53578ab486e4e4dba9fef55ca32ecc 100644 (file)
@@ -162,8 +162,8 @@ run_define_groups (PsppireDialogActionIndepSamps *act)
 
   if ( var_is_numeric (act->grp_var))
     {
-      gtk_table_attach_defaults (GTK_TABLE (act->dg_table1), act->dg_table2,
-                                1, 2, 1, 2);
+      gtk_grid_attach (GTK_GRID (act->dg_table1), act->dg_table2,
+                      1, 1, 1, 1);
 
       gtk_container_add (GTK_CONTAINER (act->dg_box), act->dg_table1);
     }