aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@src.gnome.org>2007-11-19 07:53:16 +0800
committerCosimo Cecchi <cosimoc@src.gnome.org>2007-11-19 07:53:16 +0800
commit251fa13144d46959620edfcac81f968281dafff5 (patch)
tree2ab99d65909e468fcc23feef39d67f33a9229cef /lib/widgets
parent017dbb24e54f1afe065543ab1d6de5ea9a698be2 (diff)
downloadgsoc2013-epiphany-251fa13144d46959620edfcac81f968281dafff5.tar
gsoc2013-epiphany-251fa13144d46959620edfcac81f968281dafff5.tar.gz
gsoc2013-epiphany-251fa13144d46959620edfcac81f968281dafff5.tar.bz2
gsoc2013-epiphany-251fa13144d46959620edfcac81f968281dafff5.tar.lz
gsoc2013-epiphany-251fa13144d46959620edfcac81f968281dafff5.tar.xz
gsoc2013-epiphany-251fa13144d46959620edfcac81f968281dafff5.tar.zst
gsoc2013-epiphany-251fa13144d46959620edfcac81f968281dafff5.zip
Adds a EPHY_NODE_VIEW_ELLIPSIZED flag and make history window and
bookmarks editor views use it to display address and title columns. Fix bug #132808. svn path=/trunk/; revision=7719
Diffstat (limited to 'lib/widgets')
-rw-r--r--lib/widgets/ephy-node-view.c6
-rw-r--r--lib/widgets/ephy-node-view.h3
2 files changed, 8 insertions, 1 deletions
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c
index c32e1bd8e..c01ec6ec1 100644
--- a/lib/widgets/ephy-node-view.c
+++ b/lib/widgets/ephy-node-view.c
@@ -1288,6 +1288,12 @@ ephy_node_view_add_column (EphyNodeView *view,
gtk_tree_view_set_search_column (GTK_TREE_VIEW (view), column);
gtk_tree_view_set_enable_search (GTK_TREE_VIEW (view), TRUE);
}
+
+ if (flags & EPHY_NODE_VIEW_ELLIPSIZED)
+ {
+ g_object_set (renderer, "ellipsize-set", TRUE,
+ "ellipsize", PANGO_ELLIPSIZE_END, NULL);
+ }
if (ret != NULL)
*ret = gcolumn;
diff --git a/lib/widgets/ephy-node-view.h b/lib/widgets/ephy-node-view.h
index 51f6b9bfb..b16c2f428 100644
--- a/lib/widgets/ephy-node-view.h
+++ b/lib/widgets/ephy-node-view.h
@@ -58,7 +58,8 @@ typedef enum
EPHY_NODE_VIEW_SHOW_PRIORITY = 1 << 0,
EPHY_NODE_VIEW_SORTABLE = 1 << 1,
EPHY_NODE_VIEW_EDITABLE = 1 << 2,
- EPHY_NODE_VIEW_SEARCHABLE = 1 << 3
+ EPHY_NODE_VIEW_SEARCHABLE = 1 << 3,
+ EPHY_NODE_VIEW_ELLIPSIZED = 1 << 4
} EphyNodeViewFlags;
typedef struct