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 342358 - Add STRING to any fundamental GType functions
Add STRING to any fundamental GType functions
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: gobject
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Tim Janik
gtkdev
Depends on:
Blocks:
 
 
Reported: 2006-05-19 16:28 UTC by Daniel Espinosa
Modified: 2006-08-14 11:06 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Daniel Espinosa 2006-05-19 16:28:09 UTC
In GLib doesn't exist registered functions to transform a STRING to other type
like INT.

This could be usefull for the implementation of GDA (www.gnome-db.org), in order
to avoid that library register his own custom STRING to TYPE functions.
Comment 1 Tim Janik 2006-05-24 10:40:58 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 157734 ***
Comment 2 Daniel Espinosa 2006-05-30 19:05:47 UTC
The propousal is not serialization, is just add the transformation functions from the fundamental types (not GObject) to a string, using the GValue API g_value_transform.
Comment 3 Tim Janik 2006-08-14 11:06:34 UTC
(In reply to comment #2)
> The propousal is not serialization, is just add the transformation functions
> from the fundamental types (not GObject) to a string, using the GValue API
> g_value_transform.

i consider generic GValue<->string conversion serialization. you're merely referring to a restricted subset of the serialization functionality if you leave out objects. consequently, this issue has been adressed here:
  http://mail.gnome.org/archives/gtk-devel-list/2006-May/msg00258.html
and originally here:
  http://mail.gnome.org/archives/gtk-devel-list/2001-January/msg00128.html