[gnome-bluetooth] Ellipsise the device names in the chooser
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-bluetooth] Ellipsise the device names in the chooser
- Date: Thu, 9 Jul 2009 19:52:59 +0000 (UTC)
commit 0b9afe39a63b14b907d1266228b186da2b737436
Author: Bastien Nocera <hadess hadess net>
Date: Thu Jul 9 13:27:21 2009 +0100
Ellipsise the device names in the chooser
Removes the need for horizontal scrollbars when you have a long
device name.
lib/bluetooth-chooser.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/bluetooth-chooser.c b/lib/bluetooth-chooser.c
index 7a0d569..5f641a8 100644
--- a/lib/bluetooth-chooser.c
+++ b/lib/bluetooth-chooser.c
@@ -692,6 +692,7 @@ create_treeview (BluetoothChooser *self)
/* The device name */
renderer = gtk_cell_renderer_text_new ();
gtk_tree_view_column_pack_start (column, renderer, TRUE);
+ g_object_set (G_OBJECT (renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
gtk_tree_view_column_set_cell_data_func (column, renderer,
alias_to_label, NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]