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 359635 - gnome-about doesn't return correct values for text.getRangeExtents()
gnome-about doesn't return correct values for text.getRangeExtents()
Status: RESOLVED FIXED
Product: libgnomecanvas
Classification: Deprecated
Component: items
1.110.0
Other All
: Normal major
: ---
Assigned To: libgnomecanvas maintainers
libgnomecanvas maintainers
Depends on:
Blocks: 355524
 
 
Reported: 2006-10-04 15:59 UTC by Rich Burridge
Modified: 2009-10-02 09:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Python script for replicating the problem. (16.31 KB, text/x-python)
2006-10-04 16:03 UTC, Rich Burridge
Details
Output from running bug_355524.py (11.86 KB, application/octet-stream)
2006-10-04 16:05 UTC, Rich Burridge
Details

Description Rich Burridge 2006-10-04 15:59:58 UTC
See Orca bug #355524 for more background.

I will be attaching two files to this bug:

1/ bug_355524.py - a standalone Python script that replicates
   the problem.
2/ bug_355524.out - the results of running bug_355524.py.

Steps to reproduce:

1. Run gnome-about
2. Run gnome-terminal
3. Run the attached standalone python application in an xterm
4. Click on the gnome-terminal window.  Press F11.
5. Click on the gnome-about window.  Press F11.

Actual Results:
Step 4: You will see what a well-behaved application should do.
Step 5: You will see output like the following with the following
        values: (start=0, end=51, x=0, y=0, width=0, height=0)

Expected Results:
getRangeExtents should produce values that are real
Comment 1 Rich Burridge 2006-10-04 16:03:23 UTC
Created attachment 74011 [details]
Python script for replicating the problem.
Comment 2 Rich Burridge 2006-10-04 16:05:35 UTC
Created attachment 74012 [details]
Output from running bug_355524.py

F11 output for gnome-terminal starts at line 35.
F11 output for gnome-about starts at line 165.
Comment 3 padraig.obriain 2006-11-14 13:56:59 UTC
The problem is that atk_get_range_extents is not working for GailCanvasText.

The reason is that the function gail_canvas_text_get_character_extents exists but
does nothing.
Comment 4 Li Yuan 2007-11-21 07:54:25 UTC
Move to libgnomecanvas since A11Y support of libgnomecanvas has been moved here.

BTW, does anyone know how to get the coordinate of a given char_offset for GnomeCanvasText?
Comment 5 Sven Herzberg 2007-11-21 15:47:07 UTC
(In reply to comment #4)
> Move to libgnomecanvas since A11Y support of libgnomecanvas has been moved
> here.
> 
> BTW, does anyone know how to get the coordinate of a given char_offset for
> GnomeCanvasText?

You can query it using the PangoLayout* of the GnomeCanvasText, adjust it by the ink-rect (or logical rect) that is also stored in the text item and everything should work like a charm.
Comment 6 Joanmarie Diggs (IRC: joanie) 2008-10-24 20:31:38 UTC
Methinks someone fixed something somewhere. Orca is now doing the right thing, Rich's script is now giving valid numbers.

I'll leave it to someone else to close this out since I didn't fix it. ;-)
Comment 7 Kjartan Maraas 2009-10-02 09:40:41 UTC
Closing this based on the last comment.