keyboard: improve the layout of the bindings page

Limit size of sections view and keep the key column the same size.
This commit is contained in:
William Jon McCann 2011-02-02 20:00:31 -05:00
parent 5db83718e3
commit 437b2cfb40
2 changed files with 11 additions and 0 deletions

View file

@ -642,6 +642,7 @@
<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">
<property name="visible">True</property>
@ -730,12 +731,15 @@
</child>
<child>
<object class="GtkLabel" id="label3">
<property name="label"> </property>
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
<packing>
<property name="top_attach">1</property>
<property name="bottom_attach">2</property>
<property name="x_options">0</property>
<property name="y_options">GTK_FILL</property>
</packing>
</child>

View file

@ -1908,6 +1908,11 @@ setup_dialog (CcPanel *panel, GtkBuilder *builder)
renderer,
"text", SECTION_DESCRIPTION_COLUMN,
NULL);
g_object_set (renderer,
"width-chars", 20,
"ellipsize", PANGO_ELLIPSIZE_END,
NULL);
gtk_tree_view_append_column (treeview, column);
model = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_INT);
@ -1954,6 +1959,7 @@ setup_dialog (CcPanel *panel, GtkBuilder *builder)
NULL);
gtk_tree_view_column_set_cell_data_func (column, renderer, description_set_func, NULL, NULL);
gtk_tree_view_column_set_resizable (column, FALSE);
gtk_tree_view_column_set_expand (column, TRUE);
gtk_tree_view_append_column (treeview, column);
gtk_tree_view_column_set_sort_column_id (column, DETAIL_DESCRIPTION_COLUMN);
@ -1973,6 +1979,7 @@ setup_dialog (CcPanel *panel, GtkBuilder *builder)
column = gtk_tree_view_column_new_with_attributes (_("Shortcut"), renderer, NULL);
gtk_tree_view_column_set_cell_data_func (column, renderer, accel_set_func, NULL, NULL);
gtk_tree_view_column_set_resizable (column, FALSE);
gtk_tree_view_column_set_expand (column, FALSE);
gtk_tree_view_append_column (treeview, column);
gtk_tree_view_column_set_sort_column_id (column, DETAIL_KEYENTRY_COLUMN);