aboutsummaryrefslogtreecommitdiffstats
path: root/src/session.c
diff options
context:
space:
mode:
authorDavid Bordoley <bordoley@msu.edu>2003-04-30 22:54:29 +0800
committerDave Bordoley <Bordoley@src.gnome.org>2003-04-30 22:54:29 +0800
commit0ba96975ca121da2cb6e02fd467d426121768ce3 (patch)
tree4d54118fb321258e1a374bb2ff1fac3e5c79306f /src/session.c
parent701cb67fe785b4562adbdbeeaf7b2667cc4970a3 (diff)
downloadgsoc2013-epiphany-0ba96975ca121da2cb6e02fd467d426121768ce3.tar
gsoc2013-epiphany-0ba96975ca121da2cb6e02fd467d426121768ce3.tar.gz
gsoc2013-epiphany-0ba96975ca121da2cb6e02fd467d426121768ce3.tar.bz2
gsoc2013-epiphany-0ba96975ca121da2cb6e02fd467d426121768ce3.tar.lz
gsoc2013-epiphany-0ba96975ca121da2cb6e02fd467d426121768ce3.tar.xz
gsoc2013-epiphany-0ba96975ca121da2cb6e02fd467d426121768ce3.tar.zst
gsoc2013-epiphany-0ba96975ca121da2cb6e02fd467d426121768ce3.zip
Use ephy_shell_new_tab instead of doing exactly the same work itself.
2003-04-30 David Bordoley <bordoley@msu.edu> * src/session.c: (parse_embed): Use ephy_shell_new_tab instead of doing exactly the same work itself. Patch from Christian Persch <chpe+gnomebugz@stud.uni-saarland.de>
Diffstat (limited to 'src/session.c')
-rw-r--r--src/session.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/session.c b/src/session.c
index d057c5af6..ed5a48b69 100644
--- a/src/session.c
+++ b/src/session.c
@@ -558,14 +558,10 @@ parse_embed (xmlNodePtr child, EphyWindow *window)
url = xmlGetProp (child, "url");
title = xmlGetProp (child, "title");
- tab = ephy_tab_new ();
- embed = ephy_tab_get_embed (tab);
-
- gtk_widget_show (GTK_WIDGET(embed));
-
- ephy_window_add_tab (window, tab, FALSE, FALSE);
-
- ephy_embed_load_url (embed, url);
+ ephy_shell_new_tab (ephy_shell, window, NULL, url,
+ EPHY_NEW_TAB_IN_EXISTING_WINDOW |
+ EPHY_NEW_TAB_DONT_JUMP_TO |
+ EPHY_NEW_TAB_APPEND_LAST);
xmlFree (url);
xmlFree (title);