aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-04-16 21:51:21 +0800
committerXan Lopez <xan@igalia.com>2012-04-16 21:53:29 +0800
commit1bdd16af2c55c6131eeefa0808afa7e96fe5ef22 (patch)
tree362e69044e7a37ec6a2dac173bebff625bab4d3d
parent7b666dcffb61a417ebe43ab9f10ca0450a288ea8 (diff)
downloadgsoc2013-epiphany-1bdd16af2c55c6131eeefa0808afa7e96fe5ef22.tar.gz
gsoc2013-epiphany-1bdd16af2c55c6131eeefa0808afa7e96fe5ef22.tar.zst
gsoc2013-epiphany-1bdd16af2c55c6131eeefa0808afa7e96fe5ef22.zip
ephy-notebook: disconnect settings signal handler on finalize
Otherwise we'll try to update dead notebooks if the setting changes.
-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 1b73e7bfa..8d5af72a2 100644
--- a/src/ephy-notebook.c
+++ b/src/ephy-notebook.c
@@ -467,6 +467,9 @@ ephy_notebook_finalize (GObject *object)
EphyNotebook *notebook = EPHY_NOTEBOOK (object);
EphyNotebookPrivate *priv = notebook->priv;
+ g_signal_handlers_disconnect_by_func (EPHY_SETTINGS_UI,
+ show_tabs_changed_cb,
+ notebook);
g_list_free (priv->focused_pages);
G_OBJECT_CLASS (ephy_notebook_parent_class)->finalize (object);