diff options
author | Jorn Baayen <jbaayen@gnome.org> | 2005-01-22 03:33:03 +0800 |
---|---|---|
committer | Jorn Baayen <jbaayen@src.gnome.org> | 2005-01-22 03:33:03 +0800 |
commit | 549171e9af818b784548fc2bed4bd375006b7adc (patch) | |
tree | 5a3e639a8fe9f2175adde95c9e60ae77a76a8016 /lib/widgets/ephy-node-view.c | |
parent | 39f7d93acea222b6b3e1cd53875ac16f5cbdea4f (diff) | |
download | gsoc2013-epiphany-549171e9af818b784548fc2bed4bd375006b7adc.tar gsoc2013-epiphany-549171e9af818b784548fc2bed4bd375006b7adc.tar.gz gsoc2013-epiphany-549171e9af818b784548fc2bed4bd375006b7adc.tar.bz2 gsoc2013-epiphany-549171e9af818b784548fc2bed4bd375006b7adc.tar.lz gsoc2013-epiphany-549171e9af818b784548fc2bed4bd375006b7adc.tar.xz gsoc2013-epiphany-549171e9af818b784548fc2bed4bd375006b7adc.tar.zst gsoc2013-epiphany-549171e9af818b784548fc2bed4bd375006b7adc.zip |
Add proper _NETSCAPE_URL drag support, supplying the URL as well as the
2005-01-21 Jorn Baayen <jbaayen@gnome.org>
* lib/widgets/ephy-node-view.c: (ephy_node_view_add_column),
(ephy_node_view_enable_drag_source):
* lib/widgets/ephy-node-view.h:
* lib/widgets/ephy-tree-model-sort.c: (ephy_tree_model_sort_init),
(ephy_tree_model_sort_multi_row_draggable),
(ephy_tree_model_sort_set_base_drag_column_id),
(ephy_tree_model_sort_set_extra_drag_column_id),
(each_property_get_data_binder):
* lib/widgets/ephy-tree-model-sort.h:
* src/bookmarks/ephy-bookmark-action.c: (drag_data_get_cb):
* src/bookmarks/ephy-bookmarks-editor.c:
(ephy_bookmarks_editor_construct):
* src/bookmarks/ephy-topics-selector.c:
(ephy_topics_selector_constructor):
* src/ephy-encoding-dialog.c: (ephy_encoding_dialog_init):
* src/ephy-history-window.c: (ephy_history_window_construct):
Add proper _NETSCAPE_URL drag support, supplying the URL as well as
the title. As a side effect most data_columns in NodeViews have been
obsoleted. Fixes #163937.
Diffstat (limited to 'lib/widgets/ephy-node-view.c')
-rw-r--r-- | lib/widgets/ephy-node-view.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c index 5f01667d7..9a4291bdc 100644 --- a/lib/widgets/ephy-node-view.c +++ b/lib/widgets/ephy-node-view.c @@ -1158,13 +1158,14 @@ ephy_node_view_add_data_column (EphyNodeView *view, return column; } -GtkTreeViewColumn * +int ephy_node_view_add_column (EphyNodeView *view, const char *title, GType value_type, guint prop_id, EphyNodeViewFlags flags, - EphyTreeModelNodeValueFunc icon_func) + EphyTreeModelNodeValueFunc icon_func, + GtkTreeViewColumn **ret) { GtkTreeViewColumn *gcolumn; @@ -1236,7 +1237,10 @@ ephy_node_view_add_column (EphyNodeView *view, gtk_tree_view_column_set_sort_column_id (gcolumn, column); } - return gcolumn; + if (ret != NULL) + *ret = gcolumn; + + return column; } void @@ -1409,7 +1413,8 @@ void ephy_node_view_enable_drag_source (EphyNodeView *view, GtkTargetEntry *types, int n_types, - int column) + int base_drag_column, + int extra_drag_column) { GtkWidget *treeview; @@ -1420,8 +1425,10 @@ ephy_node_view_enable_drag_source (EphyNodeView *view, view->priv->source_target_list = gtk_target_list_new (types, n_types); - ephy_tree_model_sort_set_column_id (EPHY_TREE_MODEL_SORT (view->priv->sortmodel), - column); + ephy_tree_model_sort_set_base_drag_column_id (EPHY_TREE_MODEL_SORT (view->priv->sortmodel), + base_drag_column); + ephy_tree_model_sort_set_extra_drag_column_id (EPHY_TREE_MODEL_SORT (view->priv->sortmodel), + extra_drag_column); g_signal_connect_object (G_OBJECT (view), "button_release_event", |