From 59c3c6334c070dc7b9e34c3171dbb99374826705 Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Tue, 6 Mar 2012 19:19:12 +0200 Subject: ephy-history-view: ellypsize the title and url columns --- embed/ephy-history-view.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/embed/ephy-history-view.c b/embed/ephy-history-view.c index 0df4e972d..e23a371f7 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); -- cgit