From f61048ada10e1715b218e25989e7e4f77630cf89 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Wed, 27 Jun 2001 23:44:36 +0000 Subject: Get EvolutionShellComponent to emit a "handle_external_uri" when it gets an handleExternalURI CORBA invokation. svn path=/trunk/; revision=10550 --- shell/ChangeLog | 7 +++++++ shell/evolution-shell-component.c | 13 +++++++++++++ 2 files changed, 20 insertions(+) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index 262090fd6f..5893756bb0 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,10 @@ +2001-06-27 Ettore Perazzoli + + * evolution-shell-component.c (impl_handleExternalURI): + Implementation for the `::handleExternalURI' CORBA method; just + emit the `HANDLE_EXTERNAL_URI' signal. + (class_init): Install. + 2001-06-27 Ettore Perazzoli * evolution-shell-component.c (impl_setOwner): Renamed from diff --git a/shell/evolution-shell-component.c b/shell/evolution-shell-component.c index 1257c493e0..f9fd35a9f2 100644 --- a/shell/evolution-shell-component.c +++ b/shell/evolution-shell-component.c @@ -327,6 +327,18 @@ impl_createView (PortableServer_Servant servant, return CORBA_Object_duplicate (bonobo_object_corba_objref (BONOBO_OBJECT (control)), ev); } +static void +impl_handleExternalURI (PortableServer_Servant servant, + const CORBA_char *uri, + CORBA_Environment *ev) +{ + EvolutionShellComponent *shell_component; + + shell_component = EVOLUTION_SHELL_COMPONENT (bonobo_object_from_servant (servant)); + + gtk_signal_emit (GTK_OBJECT (shell_component), signals[HANDLE_EXTERNAL_URI], uri); +} + static void impl_createFolderAsync (PortableServer_Servant servant, const GNOME_Evolution_ShellComponentListener listener, @@ -534,6 +546,7 @@ class_init (EvolutionShellComponentClass *klass) epv->unsetOwner = impl_unsetOwner; epv->debug = impl_debug; epv->createView = impl_createView; + epv->handleExternalURI = impl_handleExternalURI; epv->createFolderAsync = impl_createFolderAsync; epv->removeFolderAsync = impl_removeFolderAsync; epv->xferFolderAsync = impl_xferFolderAsync; -- cgit v1.2.3