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 740516 - RFE: please provide an introspectible version of g_log_set_handler
RFE: please provide an introspectible version of g_log_set_handler
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: introspection
unspecified
Other All
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2014-11-21 23:05 UTC by David Shea
Modified: 2015-06-11 02:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add g_log_set_handler_full (4.10 KB, patch)
2014-11-29 04:31 UTC, Matthias Clasen
committed Details | Review

Description David Shea 2014-11-21 23:05:47 UTC
The workaround suggested for the problem described in bug 737282 was to install a log handler and take action on the messages logged by gdk_x_io_error. This is not possible, because g_log_set_handler is not introspectible. Please add a version that is to the GLib API.
Comment 1 Matthias Clasen 2014-11-29 04:31:52 UTC
Created attachment 291763 [details] [review]
Add g_log_set_handler_full

This is a bindable version of g_log_set_handler that takes
a destroy notify for the user_data.
Comment 2 André Klapper 2015-02-07 17:16:53 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Comment 3 David Shea 2015-06-08 20:19:45 UTC
Any update on this? The patch seems fine to me, and this would still be nice to have.
Comment 4 Colin Walters 2015-06-08 20:30:52 UTC
Review of attachment 291763 [details] [review]:

Looks fine to me.

::: glib/gmessages.c
@@ +576,3 @@
+
+/**
+ * g_log_set_handler_full:

Might as well (rename-to g_log_set_handler)
Comment 5 Matthias Clasen 2015-06-11 02:03:50 UTC
Attachment 291763 [details] pushed as 2471d9c - Add g_log_set_handler_full