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 340814 - HScrollBars and VScrollBars can't be retrieved from Glade
HScrollBars and VScrollBars can't be retrieved from Glade
Status: RESOLVED FIXED
Product: java-gnome
Classification: Bindings
Component: GTK
mainline
Other All
: Normal normal
: ---
Assigned To: Remy Suen
java-gnome bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-06 11:20 UTC by Remy Suen
Modified: 2006-05-25 23:34 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Patch to alter the returned class name from GTK+. (745 bytes, patch)
2006-05-06 11:22 UTC, Remy Suen
committed Details | Review

Description Remy Suen 2006-05-06 11:20:10 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
Comment 1 Remy Suen 2006-05-06 11:22:13 UTC
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.
Comment 2 Remy Suen 2006-05-25 23:34:38 UTC
Committed to CVS head, closing.