aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-04-19 20:16:17 +0800
committerXan Lopez <xan@src.gnome.org>2003-04-19 20:16:17 +0800
commit223c64a4749f008236d5523bb7a6bfd696ff0ffe (patch)
tree934d1e718f9d8ce337c0670ba8d45be09002b413 /src
parenteb54a302b7a560007abe4b803d04526d91c07553 (diff)
downloadgsoc2013-epiphany-223c64a4749f008236d5523bb7a6bfd696ff0ffe.tar
gsoc2013-epiphany-223c64a4749f008236d5523bb7a6bfd696ff0ffe.tar.gz
gsoc2013-epiphany-223c64a4749f008236d5523bb7a6bfd696ff0ffe.tar.bz2
gsoc2013-epiphany-223c64a4749f008236d5523bb7a6bfd696ff0ffe.tar.lz
gsoc2013-epiphany-223c64a4749f008236d5523bb7a6bfd696ff0ffe.tar.xz
gsoc2013-epiphany-223c64a4749f008236d5523bb7a6bfd696ff0ffe.tar.zst
gsoc2013-epiphany-223c64a4749f008236d5523bb7a6bfd696ff0ffe.zip
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).
Diffstat (limited to 'src')
-rw-r--r--src/ephy-shell.c12
1 files changed, 9 insertions, 3 deletions
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)
{