diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-07-21 16:50:12 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-07-21 16:50:12 +0800 |
commit | 7d6ff2410ae4d929a345fa3fbc16349819f74f5c (patch) | |
tree | 23b96fe5e9808f6db5d468c03721c583f643a35d /shell/evolution-shell-component-client.c | |
parent | 028b507eca8a5942e8d812561f1bf2c6cb5cc3df (diff) | |
download | gsoc2013-evolution-7d6ff2410ae4d929a345fa3fbc16349819f74f5c.tar.gz gsoc2013-evolution-7d6ff2410ae4d929a345fa3fbc16349819f74f5c.tar.zst gsoc2013-evolution-7d6ff2410ae4d929a345fa3fbc16349819f74f5c.zip |
Add support for the folder right-click ("context") menu. No component
uses this yet, though.
svn path=/trunk/; revision=4252
Diffstat (limited to 'shell/evolution-shell-component-client.c')
-rw-r--r-- | shell/evolution-shell-component-client.c | 39 |
1 files changed, 39 insertions, 0 deletions
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); } |