Re: libgsf/goffice: Fix G_TYPE_ENUM/G_TYPE_FLAGS handling for XML saving/restoring
- From: Christian Neumair <chris gnome-de org>
- To: gnumeric-list <gnumeric-list gnome org>
- Subject: Re: libgsf/goffice: Fix G_TYPE_ENUM/G_TYPE_FLAGS handling for XML saving/restoring
- Date: Wed, 29 Nov 2006 08:11:05 +0100
Am Sonntag, den 26.11.2006, 20:06 +0100 schrieb Christian Neumair:
The attached patch fixes the G_TYPE_ENUM/G_TYPE_FLAGS saving/restoring
to/from XML streams. Previously, the libgsf routines
glade_enum_from_string and glade_flags_from_string were unable to
determine the enum/flags type, which is required to look up strings like
"FOO_FLAGS_BAR" against the "FooFlags" type.
Not passing fundamental types to the libgsf helper in goffice didn't
have any negative consequences for me so far, and it shouldn't unless we
have non-GObject, non-flags and non-enum (i.e. weird) types that are not
fundamentals. I've added some debugging code for the purpose of
determining such issues.
I forwarded it to Bugzilla [1] because Morten asked me to do so.
[1] http://bugzilla.gnome.org/show_bug.cgi?id=380396
--
Christian Neumair <chris gnome-de org>
[
Date Prev][Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]