After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 623403 - drop signals when nobody is listening
drop signals when nobody is listening
Status: RESOLVED DUPLICATE of bug 733791
Product: glib
Classification: Platform
Component: gsettings
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Allison Karlitskaya (desrt)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2010-07-02 14:38 UTC by Allison Karlitskaya (desrt)
Modified: 2014-11-19 19:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allison Karlitskaya (desrt) 2010-07-02 14:38:09 UTC
to support GSettings working without a mainloop we should drop incoming signals if nobody is listening (ie: no signal handlers connected)

this prevents a queue-up of unprocessed notifications
Comment 1 Allison Karlitskaya (desrt) 2010-10-04 05:55:49 UTC
One possibility: check g_signal_has_handler_pending() when the user does a _get() on the GSettings and register the watch only at this point.
Comment 2 Allison Karlitskaya (desrt) 2014-11-19 19:35:49 UTC

*** This bug has been marked as a duplicate of bug 733791 ***