[libgd] stack-switcher: Disconnect the signals when the stack is destroyed
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd] stack-switcher: Disconnect the signals when the stack is destroyed
- Date: Mon, 25 Mar 2013 14:57:46 +0000 (UTC)
commit 152de3edb04b65166f81eaeaf1d48cd8e2238136
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Mar 25 15:12:06 2013 +0100
stack-switcher: Disconnect the signals when the stack is destroyed
https://bugzilla.gnome.org/show_bug.cgi?id=696559
libgd/gd-stack-switcher.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libgd/gd-stack-switcher.c b/libgd/gd-stack-switcher.c
index afc4373..9389ef5 100644
--- a/libgd/gd-stack-switcher.c
+++ b/libgd/gd-stack-switcher.c
@@ -216,6 +216,8 @@ disconnect_stack_signals (GdStackSwitcher *switcher)
g_signal_handlers_disconnect_by_func (priv->stack, on_stack_child_removed, switcher);
g_signal_handlers_disconnect_by_func (priv->stack, on_child_changed, switcher);
+
+ g_signal_handlers_disconnect_by_func (priv->stack, disconnect_stack_signals, switcher);
}
static void
@@ -229,6 +231,9 @@ connect_stack_signals (GdStackSwitcher *switcher)
G_CALLBACK (on_stack_child_removed), switcher);
g_signal_connect (priv->stack, "notify::visible-child",
G_CALLBACK (on_child_changed), switcher);
+
+ g_signal_connect_swapped (priv->stack, "destroy",
+ G_CALLBACK (disconnect_stack_signals), switcher);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]