From 0ba96975ca121da2cb6e02fd467d426121768ce3 Mon Sep 17 00:00:00 2001 From: David Bordoley Date: Wed, 30 Apr 2003 14:54:29 +0000 Subject: Use ephy_shell_new_tab instead of doing exactly the same work itself. 2003-04-30 David Bordoley * src/session.c: (parse_embed): Use ephy_shell_new_tab instead of doing exactly the same work itself. Patch from Christian Persch --- ChangeLog | 9 +++++++++ src/session.c | 12 ++++-------- 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 + + * src/session.c: (parse_embed): + + Use ephy_shell_new_tab instead of doing + exactly the same work itself. + + Patch from Christian Persch + 2003-04-30 Xan Lopez * 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); -- cgit v1.2.3