GNOME Bugzilla – Bug 340814
HScrollBars and VScrollBars can't be retrieved from Glade
Last modified: 2006-05-25 23:34:38 UTC
While both HScrollBar and VScrollBar has the standard public static getWhatever(Handle) factory method, a widget cannot be retrieved from Glade due to naming differences. In GTK+, they are named GtkHScrollbar and GtkVScrollbar, note that the 'b' is a lowercase character and not uppercase like what we have in libgtk-java. So the widget creation error still occurs. could not create widget: org.gnu.gtk.HScrollbar could not create widget: org.gnu.gtk.VScrollbar
Created attachment 64916 [details] [review] Patch to alter the returned class name from GTK+. This patch modifies Widget's getTypeClass(Handle) method so that a HScrollbar and VScrollbar will automatically be renamed to HScrollBar and VScrollBar.
Committed to CVS head, closing.