From 223c64a4749f008236d5523bb7a6bfd696ff0ffe Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sat, 19 Apr 2003 12:16:17 +0000 Subject: Open view source and copy page next to the current tab, not at the end Open view source and copy page next to the current tab, not at the end (this was actually a multi-liner patch, sorry marco :P). --- src/ephy-shell.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 29069a292..731bec1ea 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -479,6 +479,7 @@ ephy_shell_new_tab (EphyShell *shell, EphyTab *tab; EphyEmbed *embed; gboolean in_new_window; + gboolean grouped = FALSE; gboolean jump_to; EphyEmbed *previous_embed = NULL; @@ -506,11 +507,17 @@ ephy_shell_new_tab (EphyShell *shell, previous_embed = ephy_tab_get_embed (previous_tab); } + if (url != NULL || flags & EPHY_NEW_TAB_IS_A_COPY || + flags & EPHY_NEW_TAB_VIEW_SOURCE) + { + grouped = TRUE; + } + tab = ephy_tab_new (); embed = ephy_tab_get_embed (tab); gtk_widget_show (GTK_WIDGET(embed)); ephy_window_add_tab (window, tab, - url != NULL, + grouped, jump_to); gtk_widget_show (GTK_WIDGET(window)); @@ -535,9 +542,8 @@ ephy_shell_new_tab (EphyShell *shell, EmbedDisplayType display_type = (flags & EPHY_NEW_TAB_VIEW_SOURCE) ? DISPLAY_AS_SOURCE : DISPLAY_NORMAL; - EphyEmbed *source = ephy_tab_get_embed(previous_tab); ephy_embed_load_url (embed, "about:blank"); - ephy_embed_copy_page (embed, source, display_type); + ephy_embed_copy_page (embed, previous_embed, display_type); } else if (url) { -- cgit v1.2.3