#50089 - g_signal_handler_disconnect_matched too hard
- From: Owen Taylor <otaylor redhat com>
- To: timj gtk org
- Cc: gtk-devel-list gnome org
- Subject: #50089 - g_signal_handler_disconnect_matched too hard
- Date: 26 Mar 2001 16:31:02 -0500
Can I commit?
Owen
Index: gsignal.h
===================================================================
RCS file: /cvs/gnome/glib/gobject/gsignal.h,v
retrieving revision 1.16
diff -u -r1.16 gsignal.h
--- gsignal.h 2001/03/09 21:39:51 1.16
+++ gsignal.h 2001/03/26 21:29:48
@@ -216,6 +216,26 @@
/* --- convenience --- */
+
+#define g_signal_handlers_disconnect_by_func(o,f,d) \
+ g_signal_handlers_disconnect_matched ((o), G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, \
+ 0, 0, NULL, (f), (d))
+#define g_signal_handlers_disconnect_by_data(o,d) \
+ g_signal_handlers_disconnect_matched ((o), G_SIGNAL_MATCH_DATA, \
+ 0, 0, NULL, 0, (d))
+#define g_signal_handlers_block_by_func(o,f,d) \
+ g_signal_handlers_block_matched ((o), G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, \
+ 0, 0, NULL, (f), (d))
+#define g_signal_handlers_block_by_data(o,d) \
+ g_signal_handlers_block_matched ((o), G_SIGNAL_MATCH_DATA, \
+ 0, 0, NULL, 0, (d))
+#define g_signal_handlers_unblock_by_func(o,f,d) \
+ g_signal_handlers_unblock_matched ((o), G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, \
+ 0, 0, NULL, (f), (d))
+#define g_signal_handlers_unblock_by_data(o,d) \
+ g_signal_handlers_unblock_matched ((o), G_SIGNAL_MATCH_DATA, \
+ 0, 0, NULL, 0, (d))
+
#define g_signal_connectc(instance, detailed_signal, c_handler, data, swapped) \
g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (swapped), FALSE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]