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 705205 - debugging: printing a GObject should print its memory address
debugging: printing a GObject should print its memory address
Status: RESOLVED FIXED
Product: seed
Classification: Bindings
Component: libseed
git master
Other Linux
: Normal normal
: ---
Assigned To: seed-maint
seed-maint
Depends on:
Blocks:
 
 
Reported: 2013-07-31 14:05 UTC by Alban Crequy
Modified: 2013-08-01 02:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] printing gobjects: print the address in memory in addition to the gtype (1.75 KB, patch)
2013-07-31 14:06 UTC, Alban Crequy
none Details | Review

Description Alban Crequy 2013-07-31 14:05:26 UTC
When printing a gobject, seed prints something like:

> print (file_chooser);
[object GtkFileChooserDialog]

When integrating applications with C and JavaScript code, it would be useful for debugging to print the memory address like this:

> print (file_chooser);
[gobject GtkFileChooserDialog 0x2054230]
Comment 1 Alban Crequy 2013-07-31 14:06:46 UTC
Created attachment 250547 [details] [review]
[PATCH] printing gobjects: print the address in memory in addition to the gtype
Comment 2 Alan Knowles 2013-08-01 02:54:31 UTC
Thank - committed.

Regards
Alan