GNOME Bugzilla – Bug 309794
cannot obtain reference of FileChooserButton
Last modified: 2009-08-15 18:40:50 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.
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.