[evolution] Remove e_tree_drag_dest_set().



commit 2f7f592d638a8d72c7640b8ff7103e39da6d219f
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Jun 20 09:22:25 2013 -0400

    Remove e_tree_drag_dest_set().
    
    Reducing API bloat.  Call gtk_drag_dest_set() directly instead.

 .../evolution-util/evolution-util-sections.txt     |    1 -
 e-util/e-tree.c                                    |   17 -----------------
 e-util/e-tree.h                                    |    5 -----
 mail/message-list.c                                |   11 +++++++----
 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 a4ddf6a..a5bd766 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 bf6c1ab..367091a 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 5257996..2d5ca7c 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 e6f1657..adf60ae 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",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]