From d47f4318eeb480bcdb387013bb374ea50fbda5ad Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 3 Aug 2001 10:05:42 +0000 Subject: Call `gtk_drag_finish()' here. * e-storage-set-view.c (tree_drag_data_received): Call `gtk_drag_finish()' here. svn path=/trunk/; revision=11608 --- shell/ChangeLog | 5 +++++ shell/e-storage-set-view.c | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/shell/ChangeLog b/shell/ChangeLog index 0df1ac280e..1a739f4030 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2001-08-03 Ettore Perazzoli + + * e-storage-set-view.c (tree_drag_data_received): Call + `gtk_drag_finish()' here. + 2001-08-03 Ettore Perazzoli * e-shell-offline-handler.c (progress_listener_servant_free): 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); } -- cgit v1.2.3