aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);