From fad1048c1bc7c92496df1d580064cd3a5e716840 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 30 May 2000 23:59:22 +0000 Subject: Make quit work again by implementing a CORBA method to unregister components in ShellComponent. Implemented toggle menu items to hide/show the shortcut bar and the folder bar (but they don't work, apparently because of some BonoboUIHandler bogosity). Implemented a CORBA method in Shell to allow a client to get the component that handles a certain folder type. svn path=/trunk/; revision=3303 --- shell/e-component-registry.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'shell/e-component-registry.c') diff --git a/shell/e-component-registry.c b/shell/e-component-registry.c index 15e5204569..a2fa72d182 100644 --- a/shell/e-component-registry.c +++ b/shell/e-component-registry.c @@ -79,7 +79,20 @@ component_new (const char *id, static void component_free (Component *component) { + Evolution_ShellComponent corba_shell_component; + CORBA_Environment ev; + + CORBA_exception_init (&ev); + corba_shell_component = bonobo_object_corba_objref (BONOBO_OBJECT (component->client)); + Evolution_ShellComponent_unset_owner (corba_shell_component, &ev); + if (ev._major != CORBA_NO_EXCEPTION) + g_warning ("Cannot unregister component -- %s", component->id); + else + g_print ("Component unregistered successfully -- %s\n", component->id); + CORBA_exception_free (&ev); + g_free (component->id); + bonobo_object_unref (BONOBO_OBJECT (component->client)); e_free_string_list (component->folder_type_names); -- cgit v1.2.3