diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-08-03 18:05:42 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-08-03 18:05:42 +0800 |
commit | d47f4318eeb480bcdb387013bb374ea50fbda5ad (patch) | |
tree | ec46e362d641af768d7beed4f07597c8ab6ad9f3 /shell/e-storage-set-view.c | |
parent | 92ef30b420e69549c8942c23f4a6dcc1b254b51d (diff) | |
download | gsoc2013-evolution-d47f4318eeb480bcdb387013bb374ea50fbda5ad.tar.gz gsoc2013-evolution-d47f4318eeb480bcdb387013bb374ea50fbda5ad.tar.zst gsoc2013-evolution-d47f4318eeb480bcdb387013bb374ea50fbda5ad.zip |
Call `gtk_drag_finish()' here.
* e-storage-set-view.c (tree_drag_data_received): Call
`gtk_drag_finish()' here.
svn path=/trunk/; revision=11608
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r-- | shell/e-storage-set-view.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index 6098a16f82..063aadac36 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -1193,6 +1193,7 @@ tree_drag_data_received (ETree *etree, { EStorageSetView *storage_set_view; EStorageSetViewPrivate *priv; + gboolean handled; char *target_type; storage_set_view = E_STORAGE_SET_VIEW (etree); @@ -1223,19 +1224,21 @@ tree_drag_data_received (ETree *etree, g_print ("EStorageSetView: Moving from `%s' to `%s'\n", source_path, destination_path); e_storage_set_async_xfer_folder (priv->storage_set, source_path, destination_path, TRUE, folder_xfer_callback, NULL); + handled = TRUE; break; case GDK_ACTION_COPY: g_print ("EStorageSetView: Copying from `%s' to `%s'\n", source_path, destination_path); e_storage_set_async_xfer_folder (priv->storage_set, source_path, destination_path, FALSE, folder_xfer_callback, NULL); + handled = TRUE; break; default: + handled = FALSE; g_warning ("EStorageSetView: Unknown action %d", context->action); } g_free (destination_path); - } - else { + } else { GNOME_Evolution_ShellComponentDnd_DestinationFolder destination_folder_interface; GNOME_Evolution_ShellComponentDnd_DestinationFolder_Context corba_context; GNOME_Evolution_ShellComponentDnd_Data corba_data; @@ -1250,7 +1253,6 @@ tree_drag_data_received (ETree *etree, if (destination_folder_interface != NULL) { EFolder *folder; CORBA_Environment ev; - CORBA_boolean handled; CORBA_exception_init (&ev); @@ -1275,10 +1277,13 @@ tree_drag_data_received (ETree *etree, convert_gdk_drag_action_to_corba (context->action), &corba_data, &ev); + } } } + gtk_drag_finish (context, handled, FALSE, time); + g_free (target_type); } |