aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-06 04:28:09 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-02-06 04:28:09 +0800
commit768eae4a4874a7fe0eada98423f61d84f6416bde (patch)
tree707977820ddbc47121fb107c8569cbb5bb2ef566 /src/ephy-shell.c
parent4e522c23a0650605cf8270f381ca10f2f35bbf78 (diff)
downloadgsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar
gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.gz
gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.bz2
gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.lz
gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.xz
gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.tar.zst
gsoc2013-epiphany-768eae4a4874a7fe0eada98423f61d84f6416bde.zip
*** empty log message ***
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index c16f37403..964744a4a 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -103,7 +103,7 @@ ephy_shell_get_type (void)
(GInstanceInitFunc) ephy_shell_init
};
- ephy_shell_type = g_type_register_static (EPHY_EMBED_SHELL_IMPL,
+ ephy_shell_type = g_type_register_static (EPHY_EMBED_SHELL_TYPE,
"EphyShell",
&our_info, 0);
}
@@ -188,6 +188,12 @@ ephy_shell_new_window_cb (EphyEmbedShell *shell,
static void
ephy_shell_init (EphyShell *gs)
{
+ EphyEmbedSingle *single;
+
+ gs->priv = g_new0 (EphyShellPrivate, 1);
+ gs->priv->session = NULL;
+ gs->priv->bookmarks = NULL;
+
ephy_shell = gs;
g_object_add_weak_pointer (G_OBJECT(ephy_shell),
(gpointer *)&ephy_shell);
@@ -199,9 +205,8 @@ ephy_shell_init (EphyShell *gs)
ephy_stock_icons_init ();
ephy_ensure_dir_exists (ephy_dot_dir ());
- gs->priv = g_new0 (EphyShellPrivate, 1);
- gs->priv->session = NULL;
- gs->priv->bookmarks = NULL;
+ /* This ensures mozilla is fired up */
+ single = ephy_embed_shell_get_embed_single (EPHY_EMBED_SHELL (gs));
g_signal_connect (G_OBJECT (gs),
"new_window_orphan",