keyboard: Port shortcuts tab to GtkGrid

https://bugzilla.gnome.org/show_bug.cgi?id=709057
This commit is contained in:
Kalev Lember 2013-09-29 23:11:01 +02:00 committed by Bastien Nocera
parent c3d2631a9a
commit c5c870a558
2 changed files with 9 additions and 25 deletions

View file

@ -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>

View file

@ -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 */