[maemo-developers] g_enum_get_value_by_name
From: Marc-André Lureau marc-andre.lureau at nokia.comDate: Thu Dec 18 01:49:44 EET 2008
- Previous message: g_enum_get_value_by_name
- Next message: g_enum_get_value_by_name
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, On Wed, 2008-12-17 at 23:15 +0200, ext Arto Karppinen wrote: > Hi. > > I need to save and read an enum from a GKeyFile. I was going save the > value as a string into the keyfile and use g_enum_get_value_by_name() to > parse the value, but i cant figure out how to get the GEnumClass parameter. > > GEnumValue* g_enum_get_value_by_name(GEnumClass *enum_class, > > const gchar *name); > > Or should i be doing something else? > You can take a look at the patches attached to this bug, and please leave a comment here if you are interested in enum/flags <-> string facilities in glib (i can't get the patch in alone ;). http://bugzilla.gnome.org/show_bug.cgi?id=447907 thanks, -- Marc-André Lureau, Jabber-ID: elmarco at ok.research.nokia.com Maemo Software
- Previous message: g_enum_get_value_by_name
- Next message: g_enum_get_value_by_name
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]