aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-shell-component-client.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-03-27 02:55:41 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-03-27 02:55:41 +0800
commitf342817e88f4e598b7962d94d497c408c45a8107 (patch)
tree030887f24eba1ffab1dcaf29792ba154506752c7 /shell/evolution-shell-component-client.c
parent4cc23476d3f379c519e6b4a08bf83188fc77f900 (diff)
downloadgsoc2013-evolution-f342817e88f4e598b7962d94d497c408c45a8107.tar.gz
gsoc2013-evolution-f342817e88f4e598b7962d94d497c408c45a8107.tar.zst
gsoc2013-evolution-f342817e88f4e598b7962d94d497c408c45a8107.zip
Finish the DnD stuff by implementing move/copy on the shell side as
well. Now we should just need to implement the corresponding bits in the components... svn path=/trunk/; revision=8949
Diffstat (limited to 'shell/evolution-shell-component-client.c')
-rw-r--r--shell/evolution-shell-component-client.c60
1 files changed, 60 insertions, 0 deletions
diff --git a/shell/evolution-shell-component-client.c b/shell/evolution-shell-component-client.c
index a3d1f1ea69..d177cf2577 100644
--- a/shell/evolution-shell-component-client.c
+++ b/shell/evolution-shell-component-client.c
@@ -574,6 +574,14 @@ evolution_shell_component_client_async_create_folder (EvolutionShellComponentCli
physical_uri, type,
&ev);
+ if (ev._major != CORBA_NO_EXCEPTION && priv->callback != NULL) {
+ (* callback) (shell_component_client,
+ shell_component_result_from_corba_exception (ev),
+ data);
+ priv->callback = NULL;
+ priv->callback_data = NULL;
+ }
+
CORBA_exception_free (&ev);
}
@@ -587,6 +595,58 @@ evolution_shell_component_client_async_remove_folder (EvolutionShellComponentCli
}
void
+evolution_shell_component_client_async_xfer_folder (EvolutionShellComponentClient *shell_component_client,
+ const char *source_physical_uri,
+ const char *destination_physical_uri,
+ gboolean remove_source,
+ EvolutionShellComponentClientCallback callback,
+ void *data)
+{
+ EvolutionShellComponentClientPrivate *priv;
+ GNOME_Evolution_ShellComponent corba_shell_component;
+ CORBA_Environment ev;
+
+ g_return_if_fail (shell_component_client != NULL);
+ g_return_if_fail (EVOLUTION_IS_SHELL_COMPONENT_CLIENT (shell_component_client));
+ g_return_if_fail (source_physical_uri != NULL);
+ g_return_if_fail (destination_physical_uri != NULL);
+ g_return_if_fail (data != NULL);
+
+ priv = shell_component_client->priv;
+
+ if (priv->callback != NULL) {
+ (* callback) (shell_component_client, EVOLUTION_SHELL_COMPONENT_BUSY, data);
+ return;
+ }
+
+ create_listener_interface (shell_component_client);
+
+ CORBA_exception_init (&ev);
+
+ corba_shell_component = bonobo_object_corba_objref (BONOBO_OBJECT (shell_component_client));
+
+ priv->callback = callback;
+ priv->callback_data = data;
+
+ GNOME_Evolution_ShellComponent_xferFolderAsync (corba_shell_component,
+ priv->listener_interface,
+ source_physical_uri,
+ destination_physical_uri,
+ remove_source,
+ &ev);
+
+ if (ev._major != CORBA_NO_EXCEPTION && priv->callback != NULL) {
+ (* callback) (shell_component_client,
+ shell_component_result_from_corba_exception (ev),
+ data);
+ priv->callback = NULL;
+ priv->callback_data = NULL;
+ }
+
+ CORBA_exception_free (&ev);
+}
+
+void
evolution_shell_component_client_populate_folder_context_menu (EvolutionShellComponentClient *shell_component_client,
BonoboUIComponent *uih,
const char *physical_uri,