aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-notebook.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-notebook.c')
-rw-r--r--src/ephy-notebook.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c
index 475c2f9ae..5651b2e98 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -959,6 +959,9 @@ ephy_notebook_add_tab (EphyNotebook *nb,
if (jump_to)
{
+ /* The signal handler may have reordered the tabs */
+ position = gtk_notebook_page_num (GTK_NOTEBOOK (nb), GTK_WIDGET(tab));
+
gtk_notebook_set_current_page (GTK_NOTEBOOK (nb),
position);
g_object_set_data (G_OBJECT (tab), "jump_to",