aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-shell.c
diff options
context:
space:
mode:
authorClaudio Saavedra <csaavedra@igalia.com>2013-01-26 18:30:12 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2013-02-08 05:38:51 +0800
commitf3eef3662c3a0fad0df94f35023b73869519675d (patch)
tree01c6bf251f7f07f2c7d190ce0cad2a7357dc8655 /src/ephy-shell.c
parent370d8d7a79ee3b4270f67fe4664875b288a6f89a (diff)
downloadgsoc2013-epiphany-f3eef3662c3a0fad0df94f35023b73869519675d.tar
gsoc2013-epiphany-f3eef3662c3a0fad0df94f35023b73869519675d.tar.gz
gsoc2013-epiphany-f3eef3662c3a0fad0df94f35023b73869519675d.tar.bz2
gsoc2013-epiphany-f3eef3662c3a0fad0df94f35023b73869519675d.tar.lz
gsoc2013-epiphany-f3eef3662c3a0fad0df94f35023b73869519675d.tar.xz
gsoc2013-epiphany-f3eef3662c3a0fad0df94f35023b73869519675d.tar.zst
gsoc2013-epiphany-f3eef3662c3a0fad0df94f35023b73869519675d.zip
ephy-shell: Make it possible to prepend a tab in a window
We need this in order to open a tab in the first position of a window when undoing a tab closure. https://bugzilla.gnome.org/show_bug.cgi?id=128184
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r--src/ephy-shell.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 81fd0d4c5..5d7f47cda 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -797,6 +797,9 @@ ephy_shell_new_tab_full (EphyShell *shell,
g_warning ("Requested to append new tab after parent, but 'previous_embed' was NULL");
}
+ if (flags & EPHY_NEW_TAB_FIRST)
+ position = 0;
+
if (flags & EPHY_NEW_TAB_FROM_EXTERNAL) {
/* If the active embed is blank, use that to open the url and jump to it */
embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window));