diff options
author | Xan Lopez <xan@src.gnome.org> | 2003-04-19 20:16:17 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2003-04-19 20:16:17 +0800 |
commit | 223c64a4749f008236d5523bb7a6bfd696ff0ffe (patch) | |
tree | 934d1e718f9d8ce337c0670ba8d45be09002b413 | |
parent | eb54a302b7a560007abe4b803d04526d91c07553 (diff) | |
download | gsoc2013-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).
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/ephy-shell.c | 12 |
2 files changed, 16 insertions, 3 deletions
@@ -1,3 +1,10 @@ +2003-04-19 Xan Lopez <xan@masilla.org> + + * src/ephy-shell.c: (ephy_shell_new_tab): + + 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). + 2003-04-19 Marco Pesenti Gritti <marco@it.gnome.org> * lib/widgets/ephy-node-view.c: (ephy_node_view_add_column), 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) { |