diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-01-18 23:53:54 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-01-18 23:53:54 +0800 |
commit | bc05ca2fb4d1d031e5ba4f081666bfcbec875872 (patch) | |
tree | bce80060063e65e63366c4063267802dc35cde61 /embed/ephy-embed-single.c | |
parent | 539426a9bd327676ad71b263e497ce19da1adde9 (diff) | |
download | gsoc2013-epiphany-bc05ca2fb4d1d031e5ba4f081666bfcbec875872.tar.gz gsoc2013-epiphany-bc05ca2fb4d1d031e5ba4f081666bfcbec875872.tar.zst gsoc2013-epiphany-bc05ca2fb4d1d031e5ba4f081666bfcbec875872.zip |
Decouple embed single instantiation and initialisation. Prevents
2006-01-18 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-embed-shell.c: (impl_get_embed_single):
* embed/ephy-embed-single.c: (ephy_embed_single_init):
* embed/ephy-embed-single.h:
* embed/mozilla/mozilla-embed-single.cpp:
Decouple embed single instantiation and initialisation.
Prevents double-initialisation on startup.
* embed/mozilla/EphyContentPolicy.cpp:
* embed/mozilla/EphyContentPolicy.h:
Remove embed single variable, it was unused.
Diffstat (limited to 'embed/ephy-embed-single.c')
-rw-r--r-- | embed/ephy-embed-single.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c index fe32a0289..33831f157 100644 --- a/embed/ephy-embed-single.c +++ b/embed/ephy-embed-single.c @@ -163,6 +163,20 @@ ephy_embed_single_iface_init (gpointer g_iface) } /** + * ephy_embed_single_init: + * @single: the #EphyEmbedSingle + * + * Performs startup initialisations. Must be called before calling + * any other methods. + **/ +gboolean +ephy_embed_single_init (EphyEmbedSingle *single) +{ + EphyEmbedSingleIface *iface = EPHY_EMBED_SINGLE_GET_IFACE (single); + return iface->init (single); +} + +/** * ephy_embed_single_clear_cache: * @single: the #EphyEmbedSingle * |