Re: reverse function to g_flags_register_static()

2002-03-13 Thread Oliver Singla

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


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



reverse function to g_flags_register_static()

2002-03-12 Thread Oliver Singla

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

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list