[haiku-development] Re: Icon overlay in Tracker and MoleSVN

  • From: "Jonas Sundström" <jonas@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 05 Apr 2009 00:13:51 +0200 CEST

pieter@xxxxxxxxx wrote:
> Hi,
> 
> I was wondering if it is possible to add an
> overlay over an icon in Tracker, just like
> TortoiseSVN does this in Windows explorer.
 ...

I used TortoiseSVN for a Java class last summer.
Worked nicely.

Tracker has some overlay features, but these are
internal to Tracker for now, as far as I know.

It might not be the most efficient use of disk 
space and CPU, but it should be possible to add/
remove individual icons to files and folders.

Another more efficient but otherwise intrusive 
hack might be to work with pseudo-filetypes, one
per each of the various SVN states a file might be
in, and have a different icon for each pseudotype.
(Not sure if Tracker allows folders to have 
different types. I think it should.)

To have these files still open in the expected apps
a certain proxy-application would have to be set
in the preferred application attribute on every
single file (the attribute you can set in Trackers
Info panels "Opens with..." option) and when opening
these files for each file, sniff its real filetype
and pass on the file to its true preferred application.
This should work unless that application actively 
filters out files by type (instead of by content),
in which case one might have to true-type the file
before opening its preferred application and later
fake-type it again.

/Jonas.


Other related posts: