diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-06-29 02:46:23 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-06-29 02:46:23 +0800 |
commit | 37b493b8f7e7af84ac915def8d6c82168b2717ba (patch) | |
tree | 5059870a0ef93f1f1a88dfa3829ea8a8e5e92182 /mail/folder-browser.c | |
parent | 418a137c3a737a1a6cc8ed3cf3ecbd2f2751466a (diff) | |
download | gsoc2013-evolution-37b493b8f7e7af84ac915def8d6c82168b2717ba.tar gsoc2013-evolution-37b493b8f7e7af84ac915def8d6c82168b2717ba.tar.gz gsoc2013-evolution-37b493b8f7e7af84ac915def8d6c82168b2717ba.tar.bz2 gsoc2013-evolution-37b493b8f7e7af84ac915def8d6c82168b2717ba.tar.lz gsoc2013-evolution-37b493b8f7e7af84ac915def8d6c82168b2717ba.tar.xz gsoc2013-evolution-37b493b8f7e7af84ac915def8d6c82168b2717ba.tar.zst gsoc2013-evolution-37b493b8f7e7af84ac915def8d6c82168b2717ba.zip |
Since we have an exception variable, we might as well use it when getting
2001-06-28 Jeffrey Stedfast <fejj@ximian.com>
* component-factory.c (destination_folder_handle_drop): Since we
have an exception variable, we might as well use it when getting
folders too.
* folder-browser.c (message_list_drag_data_recieved): Call
gtk_drag_finish.
svn path=/trunk/; revision=10568
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r-- | mail/folder-browser.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 4948b685b4..546b260664 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -433,7 +433,7 @@ message_list_drag_data_recieved (ETree *tree, int row, ETreePath path, int col, fd = open (url, O_RDONLY); if (fd == -1) { g_free (url); - return; + goto fail; } stream = camel_stream_fs_new_with_fd (fd); @@ -457,11 +457,11 @@ message_list_drag_data_recieved (ETree *tree, int row, ETreePath path, int col, case DND_TARGET_TYPE_X_EVOLUTION_MESSAGE: folder = x_evolution_message_parse (selection_data->data, selection_data->length, &uids); if (folder == NULL) - return; + goto fail; if (uids == NULL) { camel_object_unref (CAMEL_OBJECT (folder)); - return; + goto fail; } mail_do_transfer_messages (folder, uids, context->action == GDK_ACTION_MOVE, fb->uri); @@ -471,6 +471,13 @@ message_list_drag_data_recieved (ETree *tree, int row, ETreePath path, int col, } camel_exception_clear (&ex); + + gtk_drag_finish (context, TRUE, TRUE, GDK_CURRENT_TIME); + + fail: + camel_exception_clear (&ex); + + gtk_drag_finish (context, FALSE, TRUE, GDK_CURRENT_TIME); } static void |