aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-component-registry.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2003-11-21 01:51:07 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2003-11-21 01:51:07 +0800
commitebc902721df626e57f28af7ce2f9273d89a859e1 (patch)
treecec45996321821c370339efd075e3aa309fec139 /shell/e-component-registry.c
parent807e7a3c199b0973bb0c33fc39d6e1114bfce13e (diff)
downloadgsoc2013-evolution-ebc902721df626e57f28af7ce2f9273d89a859e1.tar
gsoc2013-evolution-ebc902721df626e57f28af7ce2f9273d89a859e1.tar.gz
gsoc2013-evolution-ebc902721df626e57f28af7ce2f9273d89a859e1.tar.bz2
gsoc2013-evolution-ebc902721df626e57f28af7ce2f9273d89a859e1.tar.lz
gsoc2013-evolution-ebc902721df626e57f28af7ce2f9273d89a859e1.tar.xz
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.c22
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,