diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2003-11-21 01:51:07 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2003-11-21 01:51:07 +0800 |
commit | ebc902721df626e57f28af7ce2f9273d89a859e1 (patch) | |
tree | cec45996321821c370339efd075e3aa309fec139 /shell/main.c | |
parent | 807e7a3c199b0973bb0c33fc39d6e1114bfce13e (diff) | |
download | gsoc2013-evolution-ebc902721df626e57f28af7ce2f9273d89a859e1.tar.gz gsoc2013-evolution-ebc902721df626e57f28af7ce2f9273d89a859e1.tar.zst gsoc2013-evolution-ebc902721df626e57f28af7ce2f9273d89a859e1.zip |
Reimplemented using EComponentRegistry.
* e-shell.c (impl_Shell_handleURI): Reimplemented using
EComponentRegistry.
* main.c (idle_cb): Create a new window even if we have a URI
list.
* e-component-registry.c
(e_component_registry_peek_info_for_uri_schema): New.
svn path=/trunk/; revision=23461
Diffstat (limited to 'shell/main.c')
-rw-r--r-- | shell/main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/shell/main.c b/shell/main.c index d89566a6aa..dfc4a17643 100644 --- a/shell/main.c +++ b/shell/main.c @@ -430,9 +430,9 @@ idle_cb (void *data) have_evolution_uri = FALSE; - if (uri_list == NULL && shell != NULL) + if (shell != NULL) { e_shell_create_window (shell, default_component_id, NULL); - else { + } else { CORBA_Environment ev; CORBA_exception_init (&ev); @@ -445,9 +445,8 @@ idle_cb (void *data) uri = (const char *) p->data; GNOME_Evolution_Shell_handleURI (corba_shell, uri, &ev); - if (ev._major == CORBA_NO_EXCEPTION) { - g_warning ("CORBA exception %s when requesting URI -- %s", - BONOBO_EX_REPOID (&ev), uri); + if (ev._major != CORBA_NO_EXCEPTION) { + g_warning ("Invalid URI: %s", uri); CORBA_exception_free (&ev); } } |