> Is there a way to access the data available through the
> GTK_WIDGET_xxxx
> macros? For my current project, I'd need to run the
> GTK_WIDGET_SENSITIVE(widget) macro to find out if the widget
> is sensitive
> or not. Of course I can keep the info somewhere until this gets fixed.
>
> The C interface provides the gtk_widget_set_sensitive() for
> setting the
> value, but for getting there's only the above macro (afaik).
>
> The setSensitive() method is implemented in the Widget class,
> so maybe we
> could take a java-like approach and add a getSensitive()
> method that then
> somehow runs the macro (or something).
I would suggest implementing this as a method on the widget class
and making a native call to retrieve this value. The problem with
using a instance variable to hold this information is that sometimes
your value could be out of sync with the native state if the state is
changed internally. Adding this method would be quite simple.
-Jeff
|