Re: [Java-gnome-developer] GTK_WIDGET_xxxx macro access
Brought to you by:
afcowie
From: Jonas B. <jb...@ni...> - 2003-10-14 18:07:19
|
On Wed, 8 Oct 2003 08:25:20 -0400, Jeffrey Morgan=20 <Jef...@Br...> wrote: >> 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. > > 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. Did that, here is the patch: http://xkr47.outerspace.dyndns.org/patches/java-gnome/cvs-031014-4-widget= -getSensitive.diff - xkr47 |