[Libreoffice] [PUSHED][PATCH] Word count dialog modeless

Matt Pratt mattpratt.au at gmail.com
Wed Nov 2 19:21:33 PDT 2011


On 11/02/2011 10:10 AM, Caolán McNamara wrote:
> On Wed, 2011-11-02 at 14:55 +0000, Caolán McNamara wrote:
>> There are some titchy little wrinkles worth looking at, e.g. its got
>> handlers for cursor and mouse move and things like that to update the
>> count, but not apparently for selecting text by clicking the mouse, i.e.
>> double click to select a word and single click somewhere else to
>> unselect the text.
>
> I *think* the right thing to do is to additionally hook into "EndSelect"
> which gets called when a selection is completed, and "Invalidate" which
> seems to get called when a selection is discarded.
> i.e.
> http://cgit.freedesktop.org/libreoffice/core/commit/?id=0cbcb89fde8cc81db499bc1e388fd53ef6fa3c3f
>
> Seems to work anyway.

Wow, thanks for sorting out the wrinkles and pushing the patch so quickly.

I think with your hook into EndSelect we may be able to get rid of the 
mouse hook?


More information about the LibreOffice mailing list