diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/session.c | 12 |
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); |