[gnome-bluetooth] bluetooth-properties: fix width of "Device" column
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] bluetooth-properties: fix width of "Device" column
- Date: Mon, 7 Feb 2011 00:12:14 +0000 (UTC)
commit 2301fd06c7b2fffade208b56a92b4c1a2727dab5
Author: Daniele Forsi <daniele forsi it>
Date: Sat Jan 29 17:15:51 2011 +0100
bluetooth-properties: fix width of "Device" column
Set the whole column to expand, not just one of its cell renderers.
Also remove minimum width because 280 is too wide for the space
available when buttons are translated; this way initial width is
simply proportional to the other widgets.
https://bugzilla.gnome.org/show_bug.cgi?id=628922
lib/bluetooth-chooser.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/lib/bluetooth-chooser.c b/lib/bluetooth-chooser.c
index ef1efb7..6f0fb30 100644
--- a/lib/bluetooth-chooser.c
+++ b/lib/bluetooth-chooser.c
@@ -762,6 +762,7 @@ create_treeview (BluetoothChooser *self)
column = gtk_tree_view_column_new ();
gtk_tree_view_column_set_title (column, _("Device"));
+ gtk_tree_view_column_set_expand (GTK_TREE_VIEW_COLUMN(column), TRUE);
/* The type icon */
renderer = gtk_cell_renderer_pixbuf_new ();
@@ -795,8 +796,6 @@ create_treeview (BluetoothChooser *self)
gtk_tree_view_append_column (GTK_TREE_VIEW(tree), column);
- gtk_tree_view_column_set_min_width (GTK_TREE_VIEW_COLUMN(column), 280);
-
gtk_tree_view_insert_column_with_data_func (GTK_TREE_VIEW(tree), -1,
_("Type"), gtk_cell_renderer_text_new(),
type_to_text, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]