diff options
author | Claudio Saavedra <csaavedra@igalia.com> | 2012-03-07 01:19:12 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-03-07 04:49:47 +0800 |
commit | 59c3c6334c070dc7b9e34c3171dbb99374826705 (patch) | |
tree | f55b2560fba6a210b50f3842f50051bfe77bf047 | |
parent | bb62057c7da3fce1f7ddcbe3d235a220cee13a48 (diff) | |
download | gsoc2013-epiphany-59c3c6334c070dc7b9e34c3171dbb99374826705.tar.gz gsoc2013-epiphany-59c3c6334c070dc7b9e34c3171dbb99374826705.tar.zst gsoc2013-epiphany-59c3c6334c070dc7b9e34c3171dbb99374826705.zip |
ephy-history-view: ellypsize the title and url columns
-rw-r--r-- | 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 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); |