summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2014-11-28 16:20:40 -0500
committerRyan Lortie <desrt@desrt.ca>2014-11-28 16:22:16 -0500
commitc476f7cd264ca3c69c002c4bcc1563b17cd976b2 (patch)
tree6bbf32491d823a3f92b28bdcc2b856222afbdcbd
parentd511d6b37f051d2cd8698055cbd85ee7f987325d (diff)
downloadglib-c476f7cd264ca3c69c002c4bcc1563b17cd976b2.tar.gz
gsignal: add a clarification to the docs
As evidenced by a mistake that I made recently, this documentation could use a little bit of clarification.
-rw-r--r--gobject/gsignal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gobject/gsignal.c b/gobject/gsignal.c
index be613b683..257fc8d4c 100644
--- a/gobject/gsignal.c
+++ b/gobject/gsignal.c
@@ -2867,6 +2867,12 @@ g_signal_handlers_disconnect_matched (gpointer instance,
* Returns whether there are any handlers connected to @instance for the
* given signal id and detail.
*
+ * If @detail is 0 then it will only match handlers that were connected
+ * without detail. If @detail is non-zero then it will match handlers
+ * connected both without detail and with the given detail. This is
+ * consistent with how a signal emitted with @detail would be delivered
+ * to those handlers.
+ *
* One example of when you might use this is when the arguments to the
* signal are difficult to compute. A class implementor may opt to not
* emit the signal if no one is attached anyway, thus saving the cost