aboutsummaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--ChangeLog9
-rw-r--r--src/session.c12
2 files changed, 13 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index a389643b3..3c2aa90e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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>
+
2003-04-30 Xan Lopez <xan@masilla.org>
* src/bookmarks/ephy-bookmarks-editor.c:
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);