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 503074 - crosswire length should be customizable
crosswire length should be customizable
Status: RESOLVED FIXED
Product: gnome-mag
Classification: Deprecated
Component: others
0.14.x
Other All
: Normal enhancement
: ---
Assigned To: bill.haneman
bill.haneman
Depends on:
Blocks:
 
 
Reported: 2007-12-11 16:45 UTC by Joanmarie Diggs (IRC: joanie)
Modified: 2007-12-27 17:51 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
fix for the problem (8.71 KB, patch)
2007-12-23 21:12 UTC, Carlos Eduardo Rodrigues Diógenes
accepted-commit_now Details | Review
improved fix for the problem (8.98 KB, patch)
2007-12-24 16:08 UTC, Carlos Eduardo Rodrigues Diógenes
accepted-commit_now Details | Review
improved fix for the problem (10.62 KB, patch)
2007-12-27 17:48 UTC, Carlos Eduardo Rodrigues Diógenes
committed Details | Review

Description Joanmarie Diggs (IRC: joanie) 2007-12-11 16:45:13 UTC
You can currently set the width/thickness of the crosswire and add a crosswire clip.  However, the length of the crosswires is not customizable (The crosswires extend the full length and width of the zoom region, covering up screen contents in the process).  While some users benefit from "full" crosswires, many users just need "a little extra" surrounding the mouse pointer to make the pointer easier to spot.  Therefore, it would be helpful if clients could specify the length of the crosswires.

Thanks!
Comment 1 Carlos Eduardo Rodrigues Diógenes 2007-12-23 12:28:54 UTC
Hmmm, this property is defined in Magnifier, so it's apply to all ZoomRegion created. I think that support per ZoomRegion is better, what do you think?

BTW, I will provide a patch to be possible to set the crosswire length with the actual code base.
Comment 2 Carlos Eduardo Rodrigues Diógenes 2007-12-23 13:07:46 UTC
Joanmarie, would you like that each length (top, left, right, bottom) be controllable, like the borders?
Comment 3 Joanmarie Diggs (IRC: joanie) 2007-12-23 17:16:28 UTC
I'm not sure I am knowledgeable enough to have an opinion on whether that should be per ZoomRegion or not.  I'll leave that to you. :-)

I don't think it's necessary to set each length.  I think people who want cross hairs expect all four directions to be the same size.  But we can go either way as far as Orca is concerned.

Thanks!
Comment 4 Carlos Eduardo Rodrigues Diógenes 2007-12-23 21:12:09 UTC
Created attachment 101521 [details] [review]
fix for the problem

Hi Joanmarie,

here is a patch for the problem. You can test it with the control-client application:

#: ./control-client f 10 50 1

Where the numbers after 'f' are SIZE, LENGTH and CLIP, respectively.

Best regards.
Comment 5 Joanmarie Diggs (IRC: joanie) 2007-12-23 22:46:16 UTC
I see that it works great with the control-client -- and is very cool btw :-)

However with this patch and making no changes to Orca, I can no longer enable the clip.  Should I be doing something differently within Orca or should the clip settings continue to "just work"?

Thanks!
Comment 6 Carlos Eduardo Rodrigues Diógenes 2007-12-24 00:51:05 UTC
The clip must continue to "just work" and in my machine it just worked. I can use the control-client app to set size and length and also Orca to set the clip.
Comment 7 Joanmarie Diggs (IRC: joanie) 2007-12-24 03:04:12 UTC
Hmmmm.... I'm stumped then.  I'm using:

1. Latest gnome-mag from trunk
2. Latest orca from trunk
3. Ubuntu Hardy Heron

Without the patch to this bug, I can toggle the cross hair clip using the Orca Preferences dialog.  With the patch to the this bug, I cannot toggle the cross hair clip using the Orca Preferences dialog.

You're able to toggle the clip just using Orca from trunk and your patch??

I see that things work as expected when I use the control-client app....  Any hints would be greatly appreciated! :-)  Thanks!
Comment 8 Carlos Eduardo Rodrigues Diógenes 2007-12-24 16:03:58 UTC
(In reply to comment #7)
> Hmmmm.... I'm stumped then.  I'm using:
> 
> 1. Latest gnome-mag from trunk
> 2. Latest orca from trunk
> 3. Ubuntu Hardy Heron

The only difference is that I'm using Ubuntu 7.10, but I really doubt that this is the problem.

> 
> You're able to toggle the clip just using Orca from trunk and your patch??

Yes.

> 
> I see that things work as expected when I use the control-client app....  Any
> hints would be greatly appreciated! :-)  Thanks!
> 

I really don't know what can be wrong :-(
Comment 9 Carlos Eduardo Rodrigues Diógenes 2007-12-24 16:08:16 UTC
Created attachment 101549 [details] [review]
improved fix for the problem

This new patch improve how the crosswire is draw when the crosswire clip is off, so it's look better.
Comment 10 Carlos Eduardo Rodrigues Diógenes 2007-12-27 17:48:15 UTC
Created attachment 101686 [details] [review]
improved fix for the problem

This patch remove the zoom_region_repaint_pointer that is unnecessary. The places where it was called is now replaced by zoom_region_update_cursor.