aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-08-27 02:50:46 +0800
committerChristian Persch <chpe@src.gnome.org>2004-08-27 02:50:46 +0800
commit6e2dd16aab99579360000ff1d2c66ece64dc3af3 (patch)
treedd5d55134bd5419a71232064e17b36fadfd41051 /src
parentc0dadbdebf6135ea000e171009f876907140cc3f (diff)
downloadgsoc2013-epiphany-6e2dd16aab99579360000ff1d2c66ece64dc3af3.tar
gsoc2013-epiphany-6e2dd16aab99579360000ff1d2c66ece64dc3af3.tar.gz
gsoc2013-epiphany-6e2dd16aab99579360000ff1d2c66ece64dc3af3.tar.bz2
gsoc2013-epiphany-6e2dd16aab99579360000ff1d2c66ece64dc3af3.tar.lz
gsoc2013-epiphany-6e2dd16aab99579360000ff1d2c66ece64dc3af3.tar.xz
gsoc2013-epiphany-6e2dd16aab99579360000ff1d2c66ece64dc3af3.tar.zst
gsoc2013-epiphany-6e2dd16aab99579360000ff1d2c66ece64dc3af3.zip
Get the position of the new tab after the tab_added signal was emitted, to
2004-08-26 Christian Persch <chpe@cvs.gnome.org> * src/ephy-notebook.c: (ephy_notebook_add_tab): Get the position of the new tab after the tab_added signal was emitted, to get it right in the case the signal handler reorders the tabs. Patch by Justin Wake.
Diffstat (limited to 'src')
-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",