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 130075 - gtk_text_view_get_iter_location() always returns incorrect y value
gtk_text_view_get_iter_location() always returns incorrect y value
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2003-12-27 14:18 UTC by Sebastien Bacher
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4


Attachments
The test program (2.05 KB, patch)
2003-12-27 14:18 UTC, Sebastien Bacher
none Details | Review

Description Sebastien Bacher 2003-12-27 14:18:09 UTC
This bug was originally reported in the Debian BTS:
http://bugs.debian.org/221596

"gtk_text_view_get_iter_location() always returns rect.y == rect.height
rather than the correct value, as demonstrated by this test program:"
Comment 1 Sebastien Bacher 2003-12-27 14:18:41 UTC
Created attachment 22733 [details] [review]
The test program
Comment 2 Matthias Clasen 2003-12-27 22:35:07 UTC
This is probably the result of working on an unrealized text view,
though I can't explain exactly where the y == 17 originates. Moving
the get_iter_location() call into the callback makes your testcase 
report 

x = 202, y = 136
w = 7, h = 17