diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed-factory.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/embed/ephy-embed-factory.c b/embed/ephy-embed-factory.c index 74dfd4853..4c527234f 100644 --- a/embed/ephy-embed-factory.c +++ b/embed/ephy-embed-factory.c @@ -56,6 +56,20 @@ type_from_id (const char *object_id) return result; } +/** + * ephy_embed_factory_new_object: + * @object_id: identifier of the object to create + * + * Create an instance of the object identified by + * object_id string. Valid ids are EphyEmbed, EphyEmbedPersist, + * EphyEmbedSingle. + * We use a factory instead of creating instances directly + * to keep the embed implementation abstract. All the embed + * objects should be based on an interface and created by + * this factory. + * + * Return value: the object instance + **/ GObject * ephy_embed_factory_new_object (const char *object_id) { |