[epiphany/wip/history-rewrite] ephy-history-view: ellypsize the title and url columns
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/history-rewrite] ephy-history-view: ellypsize the title and url columns
- Date: Tue, 6 Mar 2012 17:21:33 +0000 (UTC)
commit 2d865b0ebb92b38cad7406b2d6e403979351dbb0
Author: Claudio Saavedra <csaavedra igalia com>
Date: Tue Mar 6 19:19:12 2012 +0200
ephy-history-view: ellypsize the title and url columns
embed/ephy-history-view.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-history-view.c b/embed/ephy-history-view.c
index 0df4e97..e23a371 100644
--- a/embed/ephy-history-view.c
+++ b/embed/ephy-history-view.c
@@ -96,13 +96,17 @@ ephy_history_view_init (EphyHistoryView *self)
GtkTreeSelection *selection;
column = gtk_tree_view_column_new_with_attributes (_("Title"),
- gtk_cell_renderer_text_new (),
+ g_object_new (GTK_TYPE_CELL_RENDERER_TEXT,
+ "ellipsize-set", TRUE,
+ "ellipsize", PANGO_ELLIPSIZE_END, NULL),
"text", EPHY_HISTORY_STORE_COLUMN_TITLE,
NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW (self), column);
column = gtk_tree_view_column_new_with_attributes (_("Address"),
- gtk_cell_renderer_text_new (),
+ g_object_new (GTK_TYPE_CELL_RENDERER_TEXT,
+ "ellipsize-set", TRUE,
+ "ellipsize", PANGO_ELLIPSIZE_END, NULL),
"text", EPHY_HISTORY_STORE_COLUMN_ADDRESS,
NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW (self), column);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]