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/e-component-registry.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/e-component-registry.c')
-rw-r--r-- | shell/e-component-registry.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/shell/e-component-registry.c b/shell/e-component-registry.c index 6188e3f2eb..71170f8e82 100644 --- a/shell/e-component-registry.c +++ b/shell/e-component-registry.c @@ -267,6 +267,28 @@ e_component_registry_peek_info (EComponentRegistry *registry, return NULL; } + +EComponentInfo * +e_component_registry_peek_info_for_uri_schema (EComponentRegistry *registry, + const char *requested_schema) +{ + GSList *p, *q; + + for (p = registry->priv->infos; p != NULL; p = p->next) { + EComponentInfo *info = p->data; + + for (q = info->uri_schemas; q != NULL; q = q->next) { + const char *schema = q->data; + + if (strcmp (schema, requested_schema) == 0) + return info; + } + } + + return NULL; +} + + GNOME_Evolution_Component e_component_registry_activate (EComponentRegistry *registry, const char *id, |