summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-06-03 17:38:30 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2011-06-03 17:42:09 -0400
commita0d9614d204d0494d329e04c1d7652e451c2573f (patch)
treed859af08091acc6226333e91f1e65cdac63feecf
parentb62ab1413cca6694b9b09fc9d241bbf3581a56e6 (diff)
downloadnautilus-a0d9614d204d0494d329e04c1d7652e451c2573f.tar.gz
toolbar: disconnect the GSettings callback on dispose
-rw-r--r--src/nautilus-toolbar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index 59824b711..305dbf683 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -210,6 +210,9 @@ nautilus_toolbar_dispose (GObject *obj)
g_clear_object (&self->priv->ui_manager);
g_clear_object (&self->priv->action_group);
+ g_signal_handlers_disconnect_by_func (nautilus_preferences,
+ toolbar_update_appearance, self);
+
G_OBJECT_CLASS (nautilus_toolbar_parent_class)->dispose (obj);
}