[haiku-development] Re: Where are the Tracker volume icon bitmaps created?

  • From: François Revol <revol@xxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 15 Apr 2017 13:26:23 +0200

On 15/04/2017 13:19, Brian Hill wrote:

Can someone point me to the location where the Tracker desktop volume
icons are drawn or where the icon bitmap is created?  Specifically I am
looking to emulate the bar on the icon that is used to indicate used
drive space and would like to see how Tracker does it.  I have tried to
follow the code but am lost now.  So far I think I have followed the
code here:

https://searchcode.com/file/15203200/src/kits/tracker/IconCache.cpp#l-527
https://searchcode.com/file/15203686/src/kits/storage/Volume.cpp#l-358
https://searchcode.com/file/15203660/src/kits/storage/Mime.cpp#l-340
https://searchcode.com/file/15204433/src/system/kernel/fs/fd.cpp#l-1229
https://searchcode.com/file/15204433/src/system/kernel/fs/fd.cpp#l-514
https://searchcode.com/file/33267396/headers/private/kernel/fs/fd.h#l-28

At this point I can't figure out where to go.  Thanks for any help.

-Brian

Search for fPercent in src/kits/tracker/Pose.cpp ;-)

François.

Other related posts: