diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-10-26 03:19:13 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-10-26 03:19:13 +0800 |
commit | edd48d92ae634d1b32269ddb1d2b3152eb800169 (patch) | |
tree | 6e065fb9b6e4bc023b5e62376fe74d8cc0de7623 /src/ephy-extensions-manager.c | |
parent | da7d0959009b472233de886affce4ed9a81b2475 (diff) | |
download | gsoc2013-epiphany-edd48d92ae634d1b32269ddb1d2b3152eb800169.tar gsoc2013-epiphany-edd48d92ae634d1b32269ddb1d2b3152eb800169.tar.gz gsoc2013-epiphany-edd48d92ae634d1b32269ddb1d2b3152eb800169.tar.bz2 gsoc2013-epiphany-edd48d92ae634d1b32269ddb1d2b3152eb800169.tar.lz gsoc2013-epiphany-edd48d92ae634d1b32269ddb1d2b3152eb800169.tar.xz gsoc2013-epiphany-edd48d92ae634d1b32269ddb1d2b3152eb800169.tar.zst gsoc2013-epiphany-edd48d92ae634d1b32269ddb1d2b3152eb800169.zip |
De-couple instantiation and initialisation of the extensions manager.
2004-10-25 Christian Persch <chpe@cvs.gnome.org>
* src/ephy-extensions-manager.c: (ephy_extensions_manager_init),
(ephy_extensions_manager_startup):
* src/ephy-extensions-manager.h:
* src/ephy-shell.c: (ephy_shell_get_extensions_manager):
De-couple instantiation and initialisation of the extensions manager.
Fixes double-instance and weirdness and double-type-registration
on startup when extensions use the session in their instance_init.
Diffstat (limited to 'src/ephy-extensions-manager.c')
-rw-r--r-- | src/ephy-extensions-manager.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ephy-extensions-manager.c b/src/ephy-extensions-manager.c index f39283abe..6139051df 100644 --- a/src/ephy-extensions-manager.c +++ b/src/ephy-extensions-manager.c @@ -887,11 +887,19 @@ init_schema_ctxt (EphyExtensionsManager *manager) static void ephy_extensions_manager_init (EphyExtensionsManager *manager) { - char *path; - manager->priv = EPHY_EXTENSIONS_MANAGER_GET_PRIVATE (manager); LOG ("EphyExtensionsManager initialising") +} + +void +ephy_extensions_manager_startup (EphyExtensionsManager *manager) +{ + char *path; + + g_return_if_fail (EPHY_IS_EXTENSIONS_MANAGER (manager)); + + LOG ("EphyExtensionsManager startup") init_schema_ctxt (manager); |