[maemo-developers] g_enum_get_value_by_name
From: Pekka Pessi Pekka.Pessi at nokia.comDate: Thu Dec 18 09:36:21 EET 2008
- Previous message: g_enum_get_value_by_name
- Next message: Feature upgrade has given me the bluez - users must remove my app to upgrade
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Arto Karppinen <arto.karppinen at mail.suomi.net> 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_name(GEnumClass *enum_class, > const gchar *name); g_type_class_ref() and then unref or if you already have ref'ed, g_type_class_peek(). --Pekka
- Previous message: g_enum_get_value_by_name
- Next message: Feature upgrade has given me the bluez - users must remove my app to upgrade
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]