Commit bd3a0214 authored by Cosimo Cecchi's avatar Cosimo Cecchi

trash-bar: disconnect view signals in dispose()

Rather than finalize(), since the view is usually destroyed when the
slot is disposed.
Fixes a runtime warning.
parent 4dca7871
......@@ -99,7 +99,7 @@ nautilus_trash_bar_set_property (GObject *object,
static void
nautilus_trash_bar_finalize (GObject *obj)
nautilus_trash_bar_dispose (GObject *obj)
NautilusTrashBar *bar;
......@@ -109,7 +109,7 @@ nautilus_trash_bar_finalize (GObject *obj)
g_signal_handler_disconnect (bar->priv->view, bar->priv->selection_handler_id);
G_OBJECT_CLASS (nautilus_trash_bar_parent_class)->finalize (obj);
G_OBJECT_CLASS (nautilus_trash_bar_parent_class)->dispose (obj);
static void
......@@ -134,7 +134,7 @@ nautilus_trash_bar_class_init (NautilusTrashBarClass *klass)
object_class = G_OBJECT_CLASS (klass);
object_class->set_property = nautilus_trash_bar_set_property;
object_class->finalize = nautilus_trash_bar_finalize;
object_class->dispose = nautilus_trash_bar_dispose;
g_object_class_install_property (object_class,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment