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 614541 - Add G_TYPE_ERROR boxed type for GError
Add G_TYPE_ERROR boxed type for GError
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gobject
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
: 300610 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-04-01 07:02 UTC by Sebastian Dröge (slomo)
Modified: 2010-04-23 12:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add G_TYPE_ERROR as boxed type for GError (2.20 KB, patch)
2010-04-01 07:03 UTC, Sebastian Dröge (slomo)
accepted-commit_now Details | Review

Description Sebastian Dröge (slomo) 2010-04-01 07:02:20 UTC
Hi,
attached patch adds G_TYPE_ERROR as a boxed type for holding GErrors. This can be used for storing GError instances inside GValues for example.
Comment 1 Sebastian Dröge (slomo) 2010-04-01 07:03:02 UTC
Created attachment 157663 [details] [review]
Add G_TYPE_ERROR as boxed type for GError
Comment 2 Christian Persch 2010-04-01 10:03:43 UTC
See also bug 300610. That one was WONTFIXed, but that was before we added boxed types for all the other glib things (e.g. GRegex, GArray etc).
Comment 3 Sebastian Dröge (slomo) 2010-04-01 13:45:05 UTC
Right, that's exactly the reason why I want it: GST_TYPE_GERROR is ugly and really the wrong place for a GType for GError.
Comment 4 Matthias Clasen 2010-04-22 21:06:24 UTC
I have no objection to adding that type.
Comment 5 David Zeuthen (not reading bugmail) 2010-04-22 21:11:03 UTC
Sounds great + good time since I'd like to use in GDBus for the ::disconnected signal (to convey what caused the disconnection). Thanks.
Comment 6 Murray Cumming 2010-04-23 12:45:11 UTC
*** Bug 300610 has been marked as a duplicate of this bug. ***