[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Overlay drawn on wrong file after change/folder - Nightly 5225

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2005-12-27 10:07:11 CET

Molle Bestefich wrote:
>> This is a 'bug' in the shell (explorer) itself. TSVN always tells the
>> shell the correct overlay (and it *never* draws an overlay for the .svn
>> folder). The problem here is a race condition:
>> * shell asks for overlay
>> * TSVN returns the overlay index
>
> For the uninitiated, what is an "overlay index" ?

The shell has 16 overlay slots, of which the shell itself uses 4 for
itself, so 12 are open for other apps to use.
These 16 overlays are loaded on shell startup and put into the icon
cache, with the first overlay getting index 0, the second getting index
1 and so on. An overlay handler has to first tell the shell that it
wants to have one of those slots, give the shell the icon data. Then the
shell returns the index it gave the overlay handler (or an error if
there are no more slots available). After this, the overlay handler only
has to return that index whenever it wants to have the overlay drawn.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Dec 27 10:07:59 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.