From 2a3a53e9cf40ab9a43f7b6106019325990f7ac63 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 9 Apr 2002 14:59:26 +0000 Subject: Add a "view_info" argument. * Evolution-ShellComponent.idl (createView): Add a "view_info" argument. * e-shell-view.c (get_view_for_uri): if the URI contains a '#', split it into a URI and a "view_info" at that point. (Otherwise, pass "" for the view_info to ShellComponent_createView.) This can be used for things like specifying day/month/week view to the calendar. * e-shell.c (create_view): Ignore e_shell_view_display_uri's return code: it's possible/likely that the requested URL is remote and hasn't been filled in yet. (impl_Shell_handleURI): Don't use Shell_createNewView directly, call e_shell_create_view_from_uri_and_settings. (For the above fix and some others.) * evolution-shell-component.c (impl_createView): Add view_info. * evolution-shell-component-client.c (evolution_shell_component_client_create_view): Add view_info. * evolution-test-component.c (create_view_fn): add view_data. * e-corba-storage-registry.c (impl_StorageRegistry_getFolderByUri): kill a warning svn path=/trunk/; revision=16397 --- shell/evolution-shell-component.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shell/evolution-shell-component.c') diff --git a/shell/evolution-shell-component.c b/shell/evolution-shell-component.c index e552073c97..b1eab010de 100644 --- a/shell/evolution-shell-component.c +++ b/shell/evolution-shell-component.c @@ -478,6 +478,7 @@ static Bonobo_Control impl_createView (PortableServer_Servant servant, const CORBA_char *physical_uri, const CORBA_char *type, + const CORBA_char *view_info, CORBA_Environment *ev) { BonoboObject *bonobo_object; @@ -491,7 +492,7 @@ impl_createView (PortableServer_Servant servant, priv = shell_component->priv; result = (* priv->create_view_fn) (shell_component, physical_uri, type, - &control, priv->closure); + view_info, &control, priv->closure); if (result != EVOLUTION_SHELL_COMPONENT_OK) { switch (result) { -- cgit