GNOME Bugzilla – Bug 309126
GDK_IS_WINDOW assertion failing
Last modified: 2009-08-15 18:40:50 UTC
Version details: libgtk-java 2.6 Distribution/Version: Red Hat Fedora Core 4 When using a TextView (subclass) and trying to get a TextIterator based on (x,y) coordinates using gtk_text_view_get_window_type(Handle textView Handle window) the following exception is thrown: java.lang.Exception: gtk_text_view_get_window_type: assertion `GDK_IS_WINDOW (window)' failed at org.gnu.glib.GObject.printStackTrace(GObject.java:644) at org.gnu.gtk.TextView.gtk_text_view_get_window_type(Native Method) This may or may not be unique to TextView, but I have encountered it with this particular method in TextView. I will attach a simple example where this fails.
Created attachment 48411 [details] Simple test case with a subclass of TextView and a launcher class Here's a test case that has a subclass of TextView (to be able to call gtk_text_view_get_window) and a launcher class that tries to use that functionality.
Thanks for reporting this and for providing a test case. Fixed in the gtk-java-2-6 branch and CVS HEAD.