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 | |
parent | 92ef30b420e69549c8942c23f4a6dcc1b254b51d (diff) | |
download | gsoc2013-evolution-d47f4318eeb480bcdb387013bb374ea50fbda5ad.tar gsoc2013-evolution-d47f4318eeb480bcdb387013bb374ea50fbda5ad.tar.gz gsoc2013-evolution-d47f4318eeb480bcdb387013bb374ea50fbda5ad.tar.bz2 gsoc2013-evolution-d47f4318eeb480bcdb387013bb374ea50fbda5ad.tar.lz gsoc2013-evolution-d47f4318eeb480bcdb387013bb374ea50fbda5ad.tar.xz 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
-rw-r--r-- | shell/ChangeLog | 5 | ||||
-rw-r--r-- | 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,5 +1,10 @@ 2001-08-03 Ettore Perazzoli <ettore@ximian.com> + * e-storage-set-view.c (tree_drag_data_received): Call + `gtk_drag_finish()' here. + +2001-08-03 Ettore Perazzoli <ettore@ximian.com> + * e-shell-offline-handler.c (progress_listener_servant_free): Actually __fini the servant and deactivate the object too. (component_info_free): Updated accordingly [i.e. don't do the 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); } |