Re: reverse function to g_flags_register_static()



Never mind...
It seems that the next code works:

	GFlagsClass *eclass;
	GFlagsValue *values;
	GType etype = gdk_event_mask_get_type();
	eclass = G_FLAGS_CLASS (g_type_class_ref (etype));
	values = eclass->values;
	

Oliver Singla wrote:

In GTK 2.0:

Funtion gdk_event_mask_get_type() return a GType.
How could I retrieve the GFlagsValue structure values from this type ?

So basically I am looking for the reverse functions as g_flags_register_static() and g_enum_register_static().

TIA,
Olivier





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]