diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-03-26 03:53:58 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-03-26 03:53:58 +0800 |
commit | b3320ef7127e9fa0ca93c6c024466e1e1f0ae1c7 (patch) | |
tree | 2db543911c8a7d013d10f3475e3eab6135f9b8f6 /src/bookmarks/ephy-node-view.c | |
parent | 4a0747542c21fa5660cbf09d4b3aca5520ef8ca9 (diff) | |
download | gsoc2013-epiphany-b3320ef7127e9fa0ca93c6c024466e1e1f0ae1c7.tar gsoc2013-epiphany-b3320ef7127e9fa0ca93c6c024466e1e1f0ae1c7.tar.gz gsoc2013-epiphany-b3320ef7127e9fa0ca93c6c024466e1e1f0ae1c7.tar.bz2 gsoc2013-epiphany-b3320ef7127e9fa0ca93c6c024466e1e1f0ae1c7.tar.lz gsoc2013-epiphany-b3320ef7127e9fa0ca93c6c024466e1e1f0ae1c7.tar.xz gsoc2013-epiphany-b3320ef7127e9fa0ca93c6c024466e1e1f0ae1c7.tar.zst gsoc2013-epiphany-b3320ef7127e9fa0ca93c6c024466e1e1f0ae1c7.zip |
Make ids private
2003-03-25 Marco Pesenti Gritti <marco@it.gnome.org>
* lib/ephy-dnd.c:
* lib/ephy-dnd.h:
Make ids private
* lib/widgets/ephy-editable-toolbar.c: (impl_get_action_name),
(impl_get_action), (drag_data_received_cb), (setup_toolbar),
(setup_item), (ensure_action), (ephy_editable_toolbar_class_init),
(update_editor_sheet), (ephy_editable_toolbar_get_action_name),
(ephy_editable_toolbar_get_action):
* lib/widgets/ephy-editable-toolbar.h:
Rework special actions api.
* lib/widgets/ephy-tree-model-sort.c: (ephy_tree_model_sort_init),
(ephy_tree_model_sort_set_drag_property),
(each_url_get_data_binder),
(ephy_tree_model_sort_multi_drag_data_get):
* lib/widgets/ephy-tree-model-sort.h:
Support nodes dnd. Need more work, see FIXME
* src/bookmarks/Makefile.am:
* src/bookmarks/ephy-bookmarks-editor.c:
(ephy_bookmarks_editor_construct):
* src/bookmarks/ephy-bookmarks.c: (ephy_bookmarks_init),
(ephy_bookmarks_finalize), (ephy_bookmarks_find_keyword):
* src/bookmarks/ephy-node-view.c:
(ephy_node_view_enable_drag_source):
* src/bookmarks/ephy-node-view.h:
* src/history-dialog.c: (history_dialog_setup_view):
* src/toolbar.c: (toolbar_get_action_name), (toolbar_get_action),
(toolbar_class_init):
Support for topics dnd. The menu is still not implemented
but the hard part is done. Cant finish it until the weekend :/
Diffstat (limited to 'src/bookmarks/ephy-node-view.c')
-rw-r--r-- | src/bookmarks/ephy-node-view.c | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/src/bookmarks/ephy-node-view.c b/src/bookmarks/ephy-node-view.c index 8d75d8a41..4270d58f2 100644 --- a/src/bookmarks/ephy-node-view.c +++ b/src/bookmarks/ephy-node-view.c @@ -718,12 +718,33 @@ ephy_node_view_select_node (EphyNodeView *view, } void -ephy_node_view_enable_drag_source (EphyNodeView *view) +ephy_node_view_enable_drag_source (EphyNodeView *view, + GtkTargetEntry *types, + int n_types, + guint prop_id) { + GtkWidget *treeview; + g_return_if_fail (view != NULL); - egg_tree_multi_drag_add_drag_support (GTK_TREE_VIEW (view->priv->treeview)); - ephy_dnd_enable_model_drag_source (GTK_WIDGET (view->priv->treeview)); + treeview = view->priv->treeview; + + egg_tree_multi_drag_add_drag_support (GTK_TREE_VIEW (treeview)); + + if (types == NULL) + { + ephy_dnd_enable_model_drag_source (GTK_WIDGET (treeview)); + } + else + { + gtk_tree_view_enable_model_drag_source (GTK_TREE_VIEW (treeview), + GDK_BUTTON1_MASK, + types, n_types, + GDK_ACTION_COPY); + } + + ephy_tree_model_sort_set_drag_property (EPHY_TREE_MODEL_SORT (view->priv->sortmodel), + prop_id); } void |