aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-bookmarks-editor.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@src.gnome.org>2007-11-19 07:51:54 +0800
committerCosimo Cecchi <cosimoc@src.gnome.org>2007-11-19 07:51:54 +0800
commit017dbb24e54f1afe065543ab1d6de5ea9a698be2 (patch)
tree43117cb5e527da471397b0e56f1fa3b09e5d7b2d /src/bookmarks/ephy-bookmarks-editor.c
parentd0b69001b4244546c0a2f3adf45bb0401b2d7454 (diff)
downloadgsoc2013-epiphany-017dbb24e54f1afe065543ab1d6de5ea9a698be2.tar
gsoc2013-epiphany-017dbb24e54f1afe065543ab1d6de5ea9a698be2.tar.gz
gsoc2013-epiphany-017dbb24e54f1afe065543ab1d6de5ea9a698be2.tar.bz2
gsoc2013-epiphany-017dbb24e54f1afe065543ab1d6de5ea9a698be2.tar.lz
gsoc2013-epiphany-017dbb24e54f1afe065543ab1d6de5ea9a698be2.tar.xz
gsoc2013-epiphany-017dbb24e54f1afe065543ab1d6de5ea9a698be2.tar.zst
gsoc2013-epiphany-017dbb24e54f1afe065543ab1d6de5ea9a698be2.zip
Fix a bug in EphyNodeView which caused weird problems when setting columns
as resizable; thanks to Kristian Rietveld for finding out the cause. Make history window columns resizable and bookmarks editor columns resizable and sortable. Part of bug #132808. svn path=/trunk/; revision=7718
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-editor.c')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index db24028ad..5ad6f0b9b 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -1937,12 +1937,19 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor)
(EPHY_NODE_VIEW (bm_view), _("Title"),
G_TYPE_STRING, EPHY_NODE_BMK_PROP_TITLE,
EPHY_NODE_VIEW_EDITABLE |
- EPHY_NODE_VIEW_SEARCHABLE,
+ EPHY_NODE_VIEW_SEARCHABLE |
+ EPHY_NODE_VIEW_SORTABLE,
provide_favicon, &(editor->priv->title_col));
+ gtk_tree_view_column_set_min_width (editor->priv->title_col, 300);
+ gtk_tree_view_column_set_resizable (editor->priv->title_col, TRUE);
+
url_col_id = ephy_node_view_add_column
(EPHY_NODE_VIEW (bm_view), _("Address"),
G_TYPE_STRING, EPHY_NODE_BMK_PROP_LOCATION,
- 0, NULL, &(editor->priv->address_col));
+ EPHY_NODE_VIEW_SORTABLE, NULL, &(editor->priv->address_col));
+ gtk_tree_view_column_set_min_width (editor->priv->address_col, 300);
+ gtk_tree_view_column_set_resizable (editor->priv->address_col, TRUE);
+
ephy_node_view_enable_drag_source (EPHY_NODE_VIEW (bm_view),
bmk_drag_types,
G_N_ELEMENTS (bmk_drag_types),