aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-20 21:22:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-21 03:31:50 +0800
commit2f7f592d638a8d72c7640b8ff7103e39da6d219f (patch)
treeb6e025768e90b275b90d35e0327bae2dab836466
parentde9391e246bcbf1ff5734e47eccec07bdc4113b8 (diff)
downloadgsoc2013-evolution-2f7f592d638a8d72c7640b8ff7103e39da6d219f.tar
gsoc2013-evolution-2f7f592d638a8d72c7640b8ff7103e39da6d219f.tar.gz
gsoc2013-evolution-2f7f592d638a8d72c7640b8ff7103e39da6d219f.tar.bz2
gsoc2013-evolution-2f7f592d638a8d72c7640b8ff7103e39da6d219f.tar.lz
gsoc2013-evolution-2f7f592d638a8d72c7640b8ff7103e39da6d219f.tar.xz
gsoc2013-evolution-2f7f592d638a8d72c7640b8ff7103e39da6d219f.tar.zst
gsoc2013-evolution-2f7f592d638a8d72c7640b8ff7103e39da6d219f.zip
Remove e_tree_drag_dest_set().
Reducing API bloat. Call gtk_drag_dest_set() directly instead.
-rw-r--r--doc/reference/evolution-util/evolution-util-sections.txt1
-rw-r--r--e-util/e-tree.c17
-rw-r--r--e-util/e-tree.h5
-rw-r--r--mail/message-list.c11
4 files changed, 7 insertions, 27 deletions
diff --git a/doc/reference/evolution-util/evolution-util-sections.txt b/doc/reference/evolution-util/evolution-util-sections.txt
index a4ddf6afaa..a5bd76651e 100644
--- a/doc/reference/evolution-util/evolution-util-sections.txt
+++ b/doc/reference/evolution-util/evolution-util-sections.txt
@@ -4206,7 +4206,6 @@ e_tree_get_table_adapter
e_tree_drag_get_data
e_tree_drag_highlight
e_tree_drag_unhighlight
-e_tree_drag_dest_set
e_tree_drag_dest_set_proxy
e_tree_drag_dest_unset
e_tree_drag_source_set
diff --git a/e-util/e-tree.c b/e-util/e-tree.c
index bf6c1ab59b..367091a8bc 100644
--- a/e-util/e-tree.c
+++ b/e-util/e-tree.c
@@ -2639,23 +2639,6 @@ e_tree_drag_unhighlight (ETree *tree)
}
void
-e_tree_drag_dest_set (ETree *tree,
- GtkDestDefaults flags,
- const GtkTargetEntry *targets,
- gint n_targets,
- GdkDragAction actions)
-{
- g_return_if_fail (E_IS_TREE (tree));
-
- gtk_drag_dest_set (
- GTK_WIDGET (tree),
- flags,
- targets,
- n_targets,
- actions);
-}
-
-void
e_tree_drag_dest_set_proxy (ETree *tree,
GdkWindow *proxy_window,
GdkDragProtocol protocol,
diff --git a/e-util/e-tree.h b/e-util/e-tree.h
index 5257996a8c..2d5ca7c914 100644
--- a/e-util/e-tree.h
+++ b/e-util/e-tree.h
@@ -261,11 +261,6 @@ void e_tree_drag_highlight (ETree *tree,
gint row,
gint col); /* col == -1 to highlight entire row. */
void e_tree_drag_unhighlight (ETree *tree);
-void e_tree_drag_dest_set (ETree *tree,
- GtkDestDefaults flags,
- const GtkTargetEntry *targets,
- gint n_targets,
- GdkDragAction actions);
void e_tree_drag_dest_set_proxy (ETree *tree,
GdkWindow *proxy_window,
GdkDragProtocol protocol,
diff --git a/mail/message-list.c b/mail/message-list.c
index e6f16574c7..adf60aec41 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -3274,10 +3274,13 @@ message_list_construct (MessageList *message_list)
message_list, "tree_drag_data_get",
G_CALLBACK (ml_tree_drag_data_get), message_list);
- e_tree_drag_dest_set (
- E_TREE (message_list), GTK_DEST_DEFAULT_ALL,
- ml_drop_types, G_N_ELEMENTS (ml_drop_types),
- GDK_ACTION_MOVE | GDK_ACTION_COPY);
+ gtk_drag_dest_set (
+ GTK_WIDGET (message_list),
+ GTK_DEST_DEFAULT_ALL,
+ ml_drop_types,
+ G_N_ELEMENTS (ml_drop_types),
+ GDK_ACTION_MOVE |
+ GDK_ACTION_COPY);
g_signal_connect (
message_list, "tree_drag_data_received",