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 309126 - GDK_IS_WINDOW assertion failing
GDK_IS_WINDOW assertion failing
Status: VERIFIED FIXED
Product: java-gnome
Classification: Bindings
Component: GTK
Not Applicable
Other Linux
: Normal normal
: ---
Assigned To: Ismael Juma
Ismael Juma
Depends on:
Blocks:
 
 
Reported: 2005-06-27 13:15 UTC by Igor Foox
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Simple test case with a subclass of TextView and a launcher class (10.00 KB, application/x-compressed-tar)
2005-06-27 13:19 UTC, Igor Foox
Details

Description Igor Foox 2005-06-27 13:15:18 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.
Comment 1 Igor Foox 2005-06-27 13:19:56 UTC
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.
Comment 2 Ismael Juma 2005-06-27 13:59:07 UTC
Thanks for reporting this and for providing a test case. Fixed in the
gtk-java-2-6 branch and CVS HEAD.