After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 309794 - cannot obtain reference of FileChooserButton
cannot obtain reference of FileChooserButton
Status: VERIFIED FIXED
Product: java-gnome
Classification: Bindings
Component: LibGlade
Not Applicable
Other Linux
: Normal major
: ---
Assigned To: Ismael Juma
Ismael Juma
Depends on:
Blocks:
 
 
Reported: 2005-07-08 12:06 UTC by frenk
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description frenk 2005-07-08 12:06:06 UTC
Steps:

- build an interface with glade, insert a FileChooserButton
- in the application, call
something = (FileChooserButton)app.getWidget("myFileChooser");

then something is always null, and there is a message in the terminal:

could not create widget: could not find constructor:
org.gnu.gtk.FileChooserButton(Handle)

Indeed FileChooserButton doesn't have a constructor that takes only an Handle.
This is at least annoying, as you cannot use a FileChooserButton in a
glade-created gui!

Another weird thing is that the FileChooserButton contains an "?" icon and the
text "(none)", but there is no method to set a default value.

I found this with libglade 2.8 and libglade 2.10. I don't know about other versions.
Comment 1 Ismael Juma 2005-07-15 16:31:35 UTC
Thanks for reporting this. The first issue has been fixed in the gtk-java-2-6
branch and CVS HEAD. The second one had already been fixed in CVS HEAD, but it
can't be done for the gtk-java-2-6 branch as we cannot add API there.

In the future please file a separate bug report for each issue you have. Please
reopen if the problem still occurs.