aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--src/ephy-notebook.c3
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 781f54254..349bed30a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
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.
+
+2004-08-26 Christian Persch <chpe@cvs.gnome.org>
+
* src/ephy-window.c: (update_actions_sensitivity):
Make "FileSave" action obey lockdown too. Fixes bug #151039.
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",