From 7d6ff2410ae4d929a345fa3fbc16349819f74f5c Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 21 Jul 2000 08:50:12 +0000 Subject: Add support for the folder right-click ("context") menu. No component uses this yet, though. svn path=/trunk/; revision=4252 --- shell/evolution-shell-component-client.c | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'shell/evolution-shell-component-client.c') diff --git a/shell/evolution-shell-component-client.c b/shell/evolution-shell-component-client.c index b61fa1a351..3a7ba57bbd 100644 --- a/shell/evolution-shell-component-client.c +++ b/shell/evolution-shell-component-client.c @@ -477,6 +477,12 @@ evolution_shell_component_client_async_create_folder (EvolutionShellComponentCli 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 (physical_uri != NULL); + g_return_if_fail (type != NULL); + g_return_if_fail (callback != NULL); + priv = shell_component_client->priv; if (priv->callback != NULL) { @@ -507,6 +513,39 @@ evolution_shell_component_client_async_remove_folder (EvolutionShellComponentCli EvolutionShellComponentClientCallback callback, void *data) { + /* FIXME to do. */ +} + +void +evolution_shell_component_client_populate_folder_context_menu (EvolutionShellComponentClient *shell_component_client, + BonoboUIHandler *uih, + const char *physical_uri, + const char *type) +{ + Bonobo_UIHandler corba_uih; + EvolutionShellComponentClientPrivate *priv; + 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 (physical_uri != NULL); + g_return_if_fail (type != NULL); + + priv = shell_component_client->priv; + + CORBA_exception_init (&ev); + + corba_shell_component = bonobo_object_corba_objref (BONOBO_OBJECT (shell_component_client)); + corba_uih = bonobo_object_corba_objref (BONOBO_OBJECT (uih)); + + Evolution_ShellComponent_populate_folder_context_menu (corba_shell_component, + corba_uih, + physical_uri, + type, + &ev); + + CORBA_exception_free (&ev); } -- cgit v1.2.3