Re: g_enum_get_value_by_name

2008-12-17 Thread Pekka Pessi
Arto Karppinen writes: >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_nam

Re: g_enum_get_value_by_name

2008-12-17 Thread Marc-André Lureau
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

Re: g_enum_get_value_by_name

2008-12-17 Thread Claudio Saavedra
On Wed, 2008-12-17 at 23:15 +0200, 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 GEnum

g_enum_get_value_by_name

2008-12-17 Thread Arto Karppinen
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