[gnome-control-center] keyboard: improve the layout of the bindings page
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] keyboard: improve the layout of the bindings page
- Date: Thu, 3 Feb 2011 01:01:23 +0000 (UTC)
commit 437b2cfb405a795feb17a8f6a2895aa7805e44c0
Author: William Jon McCann <jmccann redhat com>
Date: Wed Feb 2 20:00:31 2011 -0500
keyboard: improve the layout of the bindings page
Limit size of sections view and keep the key column the same size.
panels/keyboard/gnome-keyboard-panel.ui | 4 ++++
panels/keyboard/keyboard-shortcuts.c | 7 +++++++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/panels/keyboard/gnome-keyboard-panel.ui b/panels/keyboard/gnome-keyboard-panel.ui
index cd14832..95d6fe3 100644
--- a/panels/keyboard/gnome-keyboard-panel.ui
+++ b/panels/keyboard/gnome-keyboard-panel.ui
@@ -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>
diff --git a/panels/keyboard/keyboard-shortcuts.c b/panels/keyboard/keyboard-shortcuts.c
index ae92aa3..5505b38 100644
--- a/panels/keyboard/keyboard-shortcuts.c
+++ b/panels/keyboard/keyboard-shortcuts.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]