aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/ephy-shell.c12
2 files changed, 16 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 606701b5d..4eea6d3d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
{