aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-shell-component-client.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2002-04-09 22:59:26 +0800
committerDan Winship <danw@src.gnome.org>2002-04-09 22:59:26 +0800
commit2a3a53e9cf40ab9a43f7b6106019325990f7ac63 (patch)
treef3c1d989948a78a4b7fdc7220223bf155328a701 /shell/evolution-shell-component-client.c
parent73f6d42fbdab7797f61832db9540c65edb582b59 (diff)
downloadgsoc2013-evolution-2a3a53e9cf40ab9a43f7b6106019325990f7ac63.tar
gsoc2013-evolution-2a3a53e9cf40ab9a43f7b6106019325990f7ac63.tar.gz
gsoc2013-evolution-2a3a53e9cf40ab9a43f7b6106019325990f7ac63.tar.bz2
gsoc2013-evolution-2a3a53e9cf40ab9a43f7b6106019325990f7ac63.tar.lz
gsoc2013-evolution-2a3a53e9cf40ab9a43f7b6106019325990f7ac63.tar.xz
gsoc2013-evolution-2a3a53e9cf40ab9a43f7b6106019325990f7ac63.tar.zst
gsoc2013-evolution-2a3a53e9cf40ab9a43f7b6106019325990f7ac63.zip
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
Diffstat (limited to 'shell/evolution-shell-component-client.c')
-rw-r--r--shell/evolution-shell-component-client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/evolution-shell-component-client.c b/shell/evolution-shell-component-client.c
index 9f570cf6da..2a1b2e0a2d 100644
--- a/shell/evolution-shell-component-client.c
+++ b/shell/evolution-shell-component-client.c
@@ -588,6 +588,7 @@ evolution_shell_component_client_create_view (EvolutionShellComponentClient *she
BonoboUIComponent *uih,
const char *physical_uri,
const char *type_string,
+ const char *view_info,
BonoboControl **control_return)
{
EvolutionShellComponentResult result;
@@ -601,12 +602,13 @@ evolution_shell_component_client_create_view (EvolutionShellComponentClient *she
RETURN_ERROR_IF_FAIL (BONOBO_IS_UI_COMPONENT (uih));
RETURN_ERROR_IF_FAIL (physical_uri != NULL);
RETURN_ERROR_IF_FAIL (type_string != NULL);
+ RETURN_ERROR_IF_FAIL (view_info != NULL);
RETURN_ERROR_IF_FAIL (control_return != NULL);
CORBA_exception_init (&ev);
corba_component = bonobo_object_corba_objref (BONOBO_OBJECT (shell_component_client));
- corba_control = GNOME_Evolution_ShellComponent_createView (corba_component, physical_uri, type_string, &ev);
+ corba_control = GNOME_Evolution_ShellComponent_createView (corba_component, physical_uri, type_string, view_info, &ev);
result = corba_exception_to_result (&ev);