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 529648 - Improve warning message for failure to wrap an object
Improve warning message for failure to wrap an object
Status: RESOLVED FIXED
Product: glibmm
Classification: Bindings
Component: general
2.15.x
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2008-04-24 02:57 UTC by Jonathon Jongsma
Modified: 2008-04-24 15:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonathon Jongsma 2008-04-24 02:57:53 UTC
As discussed on IRC, we often get questions about failures that occur because people forget to call the library's init() function so the Glib::wrap system doesn't work.  It was suggested that we change the warning message that is printed to the console to make this more explicit.  My stab at a possible wording:
    g_warning("Failed to wrap object of type '%s' (Hint: this error is commonly caused by failing to call a library init() function)", typename);

I plan to commit this unless there are any better suggestions.
Comment 1 Murray Cumming 2008-04-24 10:17:26 UTC
Sounds good. Thanks. Please add a "." after the '%s' and after function.
Comment 2 Jonathon Jongsma 2008-04-24 15:53:58 UTC
committed in r658