[gnome-builder] egg-signal-group: Small cleanup
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] egg-signal-group: Small cleanup
- Date: Thu, 14 May 2015 00:59:16 +0000 (UTC)
commit cde8da44091bc517863c510b944bfb99af196eb1
Author: Garrett Regier <garrettregier gmail com>
Date: Wed May 13 16:26:32 2015 -0700
egg-signal-group: Small cleanup
contrib/egg/egg-signal-group.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/contrib/egg/egg-signal-group.c b/contrib/egg/egg-signal-group.c
index 099c0b9..70caf21 100644
--- a/contrib/egg/egg-signal-group.c
+++ b/contrib/egg/egg-signal-group.c
@@ -132,10 +132,10 @@ egg_signal_group_bind_handler (EggSignalGroup *self,
g_assert (handler->closure != NULL);
g_assert (handler->handler_id == 0);
- handler->handler_id = g_signal_connect_closure (self->target,
- handler->detailed_signal,
- handler->closure,
- handler->connect_after);
+ handler->handler_id = g_signal_connect_closure (self->target,
+ handler->detailed_signal,
+ handler->closure,
+ handler->connect_after);
g_assert (handler->handler_id != 0);
@@ -183,8 +183,6 @@ egg_signal_group_unbind (EggSignalGroup *self)
g_return_if_fail (EGG_IS_SIGNAL_GROUP (self));
- /* Do nothing if the target was already freed, we can't disconnect from a freed target,
- * and since the target is gone, no signal will be emitted. */
if (self->target == NULL)
return;
@@ -371,7 +369,6 @@ signal_handler_free (gpointer data)
g_clear_pointer (&handler->closure, g_closure_unref);
handler->handler_id = 0;
handler->detailed_signal = NULL;
- handler->connect_after = FALSE;
g_slice_free (SignalHandler, handler);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]