[maemo-developers] g_enum_get_value_by_name
From: Arto Karppinen arto.karppinen at mail.suomi.netDate: Wed Dec 17 23:15:01 EET 2008
- Previous message: Python binding for libpurple
- Next message: g_enum_get_value_by_name
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
--
Arto Karppinen
------------------------------
arto.karppinen at iki.fi
- Previous message: Python binding for libpurple
- Next message: g_enum_get_value_by_name
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
