diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2004-01-29 02:09:14 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-01-29 02:09:14 +0800 |
commit | c2d0fb9b196b8cc93b4467f8872eea10e7e8b8c5 (patch) | |
tree | d7415cc3dbc628ed8f23f4431bdcfabcb99c2749 /mail/em-folder-tree.c | |
parent | cd0f54e5465d95dfee6f4fb64d47a97301997dfe (diff) | |
download | gsoc2013-evolution-c2d0fb9b196b8cc93b4467f8872eea10e7e8b8c5.tar.gz gsoc2013-evolution-c2d0fb9b196b8cc93b4467f8872eea10e7e8b8c5.tar.zst gsoc2013-evolution-c2d0fb9b196b8cc93b4467f8872eea10e7e8b8c5.zip |
And thus completes the fixes for bug #52766.
2004-01-28 Jeffrey Stedfast <fejj@ximian.com>
And thus completes the fixes for bug #52766.
* em-folder-tree.c (tree_drag_drop): Don't call
gtk_drag_get_data() manually here or we end up getting 2
drag-data-received callbacks which is Not Good (tm).
* em-folder-tree-model.c (drop_folder): Now takes a moved argument
to specify whether or not the contents were moved (the move
argument is just a hint).
(drop_uid_list): Same.
(em_folder_tree_model_drag_data_received): Updated for the above
api changes.
svn path=/trunk/; revision=24497
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 52d9764381..facf3f697e 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -518,8 +518,6 @@ tree_drag_begin (GtkWidget *widget, GdkDragContext *context, EMFolderTree *emft) GtkTreePath *path; GtkTreeIter iter; - printf ("::drag-begin called\n"); - selection = gtk_tree_view_get_selection ((GtkTreeView *) widget); if (!gtk_tree_selection_get_selected (selection, &model, &iter)) return; @@ -537,8 +535,6 @@ tree_drag_data_delete (GtkWidget *widget, GdkDragContext *context, EMFolderTree struct _EMFolderTreePrivate *priv = emft->priv; GtkTreePath *path; - printf ("::drag-data-delete called\n"); - if (!priv->drag_row || (path = gtk_tree_row_reference_get_path (priv->drag_row))) return; @@ -552,8 +548,6 @@ tree_drag_data_get (GtkWidget *widget, GdkDragContext *context, GtkSelectionData struct _EMFolderTreePrivate *priv = emft->priv; GtkTreePath *path; - printf ("::drag-data-get called\n"); - if (!priv->drag_row || !(path = gtk_tree_row_reference_get_path (priv->drag_row))) return; @@ -572,8 +566,6 @@ tree_drag_data_received (GtkWidget *widget, GdkDragContext *context, int x, int gboolean moved; gboolean move; - printf ("::drag-data-received called\n"); - if (!gtk_tree_view_get_dest_row_at_pos (priv->treeview, x, y, &path, &pos)) return; @@ -592,19 +584,13 @@ tree_drag_drop (GtkWidget *widget, GdkDragContext *context, int x, int y, guint GtkTreePath *path; GdkAtom target; - printf ("::drag-drop called\n"); - if (!gtk_tree_view_get_path_at_pos (priv->treeview, x, y, &path, &column, &cell_x, &cell_y)) return FALSE; target = em_folder_tree_model_row_drop_target (priv->model, path, context->targets); - if (target == GDK_NONE) { - gtk_tree_path_free (path); - return FALSE; - } - gtk_tree_path_free (path); - gtk_drag_get_data (widget, context, target, time); + if (target == GDK_NONE) + return FALSE; return TRUE; } @@ -614,8 +600,6 @@ tree_drag_end (GtkWidget *widget, GdkDragContext *context, EMFolderTree *emft) { struct _EMFolderTreePrivate *priv = emft->priv; - printf ("::drag-end called\n"); - if (priv->drag_row) { gtk_tree_row_reference_free (priv->drag_row); priv->drag_row = NULL; @@ -628,7 +612,6 @@ static void tree_drag_leave (GtkWidget *widget, GdkDragContext *context, guint time, EMFolderTree *emft) { /* FIXME: unhighlight target row? */ - printf ("::drag-leave called\n"); } static gboolean @@ -639,8 +622,6 @@ tree_drag_motion (GtkWidget *widget, GdkDragContext *context, int x, int y, guin GtkTreePath *path; GdkDragAction action; - printf ("::drag-motion called\n"); - if (!gtk_tree_view_get_dest_row_at_pos (priv->treeview, x, y, &path, &pos)) return FALSE; |