diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/ephy-notebook.c | 11 |
2 files changed, 17 insertions, 2 deletions
@@ -1,5 +1,13 @@ 2003-06-16 Christian Persch <chpe@cvs.gnome.org> + * src/ephy-notebook.c: (ephy_notebook_remove_page): + + Ref the child before removing it, and unref it after emitting the + tabs_removed signal. That way it stays alive while the signal is + being processed. Fixes bug 115306. + +2003-06-16 Christian Persch <chpe@cvs.gnome.org> + * configure.in: Added 'en_GB' to ALL_LINGUAS. diff --git a/src/ephy-notebook.c b/src/ephy-notebook.c index 878807e14..6671ee3b3 100644 --- a/src/ephy-notebook.c +++ b/src/ephy-notebook.c @@ -1075,10 +1075,17 @@ ephy_notebook_remove_page (EphyNotebook *nb, g_signal_handlers_disconnect_by_func (label, G_CALLBACK (sync_load_status), tab); - - g_signal_emit (G_OBJECT (nb), signals[TAB_REMOVED], 0, child); + /** + * we ref the child so that it's still alive while the tabs_removed + * signal is processed. + */ + g_object_ref (child); gtk_notebook_remove_page (GTK_NOTEBOOK (nb), position); update_tabs_visibility (nb, FALSE); + + g_signal_emit (G_OBJECT (nb), signals[TAB_REMOVED], 0, child); + + g_object_unref (child); } |