[gnome-disk-utility] Ellipsize the text in the pool tree view
- From: David Zeuthen <davidz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Ellipsize the text in the pool tree view
- Date: Wed, 9 Dec 2009 21:24:59 +0000 (UTC)
commit 6206c7f062af1304025de00840a44bb64cfe5261
Author: David Zeuthen <davidz redhat com>
Date: Wed Dec 9 16:23:46 2009 -0500
Ellipsize the text in the pool tree view
Signed-off-by: David Zeuthen <davidz redhat com>
src/gdu-gtk/gdu-pool-tree-view.c | 6 ++----
src/palimpsest/gdu-shell.c | 1 +
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/gdu-gtk/gdu-pool-tree-view.c b/src/gdu-gtk/gdu-pool-tree-view.c
index 2d4f6b0..69bf7af 100644
--- a/src/gdu-gtk/gdu-pool-tree-view.c
+++ b/src/gdu-gtk/gdu-pool-tree-view.c
@@ -211,6 +211,8 @@ format_markup (GtkCellLayout *cell_layout,
g_object_set (renderer,
"markup", markup,
+ "ellipsize-set", TRUE,
+ "ellipsize", PANGO_ELLIPSIZE_MIDDLE,
NULL);
g_free (name);
@@ -288,10 +290,6 @@ gdu_pool_tree_view_constructed (GObject *object)
renderer = gtk_cell_renderer_text_new ();
gtk_tree_view_column_pack_start (column, renderer, TRUE);
- //gtk_tree_view_column_set_attributes (column,
- // renderer,
- // "markup", GDU_POOL_TREE_MODEL_COLUMN_NAME,
- // NULL);
gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT (column),
renderer,
format_markup,
diff --git a/src/palimpsest/gdu-shell.c b/src/palimpsest/gdu-shell.c
index a4cd7f8..2b7a695 100644
--- a/src/palimpsest/gdu-shell.c
+++ b/src/palimpsest/gdu-shell.c
@@ -1134,6 +1134,7 @@ create_window (GduShell *shell)
gtk_paned_add1 (GTK_PANED (hpane), tree_view_scrolled_window);
gtk_paned_add2 (GTK_PANED (hpane), vbox1);
+ gtk_widget_set_size_request (shell->priv->tree_view, 260, -1),
//gtk_paned_set_position (GTK_PANED (hpane), 260);
gtk_box_pack_start (GTK_BOX (vbox), hpane, TRUE, TRUE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]