From 017dbb24e54f1afe065543ab1d6de5ea9a698be2 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Sun, 18 Nov 2007 23:51:54 +0000 Subject: 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 --- src/bookmarks/ephy-bookmarks-editor.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/bookmarks') 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), -- cgit v1.2.3