diff options
Diffstat (limited to 'src/bookmarks/ephy-bookmarks-editor.c')
-rw-r--r-- | src/bookmarks/ephy-bookmarks-editor.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index b4cc80a16..fdbba76c9 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -98,6 +98,12 @@ enum RESPONSE_GO }; +static GtkTargetEntry topic_drag_types [] = +{ + { EPHY_DND_TOPIC_TYPE, 0, 0 } +}; +static int n_topic_drag_types = G_N_ELEMENTS (topic_drag_types); + static GObjectClass *parent_class = NULL; static EggActionGroupEntry ephy_bookmark_popup_entries [] = { @@ -618,7 +624,10 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor) /* Keywords View */ key_view = ephy_node_view_new (node, NULL); - ephy_node_view_enable_drag_source (key_view); + ephy_node_view_enable_drag_source (key_view, + topic_drag_types, + n_topic_drag_types, + -1); ephy_node_view_set_browse_mode (key_view); ephy_node_view_add_column (key_view, _("Topics"), EPHY_TREE_MODEL_NODE_COL_KEYWORD, TRUE, TRUE); @@ -646,7 +655,7 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor) /* Bookmarks View */ bm_view = ephy_node_view_new (node, editor->priv->bookmarks_filter); ephy_node_view_set_hinted (bm_view, TRUE); - ephy_node_view_enable_drag_source (bm_view); + ephy_node_view_enable_drag_source (bm_view, NULL, 0, EPHY_NODE_BMK_PROP_LOCATION); ephy_node_view_add_icon_column (bm_view, EPHY_TREE_MODEL_NODE_COL_ICON); ephy_node_view_add_column (bm_view, _("Bookmarks"), EPHY_TREE_MODEL_NODE_COL_BOOKMARK, TRUE, TRUE); |