[gnome-control-center] keyboard: Port shortcuts tab to GtkGrid



commit c5c870a558d58f42792413294cd2238c8b3d0417
Author: Kalev Lember <kalevlember gmail com>
Date:   Sun Sep 29 23:11:01 2013 +0200

    keyboard: Port shortcuts tab to GtkGrid
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709057

 panels/keyboard/gnome-keyboard-panel.ui |   29 +++++++----------------------
 panels/keyboard/keyboard-shortcuts.c    |    5 ++---
 2 files changed, 9 insertions(+), 25 deletions(-)
---
diff --git a/panels/keyboard/gnome-keyboard-panel.ui b/panels/keyboard/gnome-keyboard-panel.ui
index dbbfb0a..ccb1f59 100644
--- a/panels/keyboard/gnome-keyboard-panel.ui
+++ b/panels/keyboard/gnome-keyboard-panel.ui
@@ -588,11 +588,9 @@
                     <property name="can_focus">False</property>
                     <property name="spacing">6</property>
                     <child>
-                      <object class="GtkTable" id="shortcuts_table">
+                      <object class="GtkGrid" id="shortcuts_grid">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
-                        <property name="n_rows">2</property>
-                        <property name="n_columns">2</property>
                         <property name="column_spacing">5</property>
                         <child>
                           <object class="GtkScrolledWindow" id="sections_swindow">
@@ -612,14 +610,17 @@
                             </child>
                           </object>
                           <packing>
-                            <property name="bottom_attach">2</property>
-                            <property name="x_options">GTK_FILL</property>
+                            <property name="left_attach">0</property>
+                            <property name="top_attach">0</property>
+                            <property name="height">2</property>
                           </packing>
                         </child>
                         <child>
                           <object class="GtkScrolledWindow" id="actions_swindow">
                             <property name="visible">True</property>
                             <property name="can_focus">True</property>
+                            <property name="hexpand">True</property>
+                            <property name="vexpand">True</property>
                             <property name="hscrollbar_policy">never</property>
                             <property name="shadow_type">in</property>
                             <child>
@@ -636,7 +637,7 @@
                           </object>
                           <packing>
                             <property name="left_attach">1</property>
-                            <property name="right_attach">2</property>
+                            <property name="top_attach">0</property>
                           </packing>
                         </child>
                         <child>
@@ -679,23 +680,7 @@
                           </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_FILL</property>
-                          </packing>
-                        </child>
-                        <child>
-                          <object class="GtkLabel" id="label3">
-                            <property name="visible">True</property>
-                            <property name="can_focus">False</property>
-                            <property name="label"> </property>
-                          </object>
-                          <packing>
-                            <property name="top_attach">1</property>
-                            <property name="bottom_attach">2</property>
-                            <property name="x_options"></property>
-                            <property name="y_options">GTK_FILL</property>
                           </packing>
                         </child>
                       </object>
diff --git a/panels/keyboard/keyboard-shortcuts.c b/panels/keyboard/keyboard-shortcuts.c
index ea0e04a..38aa04f 100644
--- a/panels/keyboard/keyboard-shortcuts.c
+++ b/panels/keyboard/keyboard-shortcuts.c
@@ -1685,7 +1685,6 @@ setup_dialog (CcPanel *panel, GtkBuilder *builder)
   GtkWidget *widget;
   GtkTreeView *treeview;
   GtkTreeSelection *selection;
-  GtkTable *table;
   GList *focus_chain;
   CcShell *shell;
   GtkListStore *model;
@@ -1808,8 +1807,8 @@ setup_dialog (CcPanel *panel, GtkBuilder *builder)
   focus_chain = g_list_append (focus_chain, WID (builder, "actions_swindow"));
   focus_chain = g_list_append (focus_chain, WID (builder, "shortcut-toolbar"));
 
-  table = GTK_TABLE (gtk_builder_get_object (builder, "shortcuts_table"));
-  gtk_container_set_focus_chain (GTK_CONTAINER (table), focus_chain);
+  widget = GTK_WIDGET (gtk_builder_get_object (builder, "shortcuts_grid"));
+  gtk_container_set_focus_chain (GTK_CONTAINER (widget), focus_chain);
   g_list_free (focus_chain);
 
   /* set up the dialog */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]