[haiku-bugs] Re: [Haiku] #11563: HaikuDepot should have an advanced tab while opening package files directly

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Sat, 07 Feb 2015 12:08:18 -0000

#11563: HaikuDepot should have an advanced tab while opening package files 
directly
---------------------------------------+----------------------------
   Reporter:  kallisti5                |      Owner:  stippi
       Type:  enhancement              |     Status:  new
   Priority:  normal                   |  Milestone:  R1
  Component:  Applications/HaikuDepot  |    Version:  R1/Development
 Resolution:                           |   Keywords:
 Blocked By:                           |   Blocking:
Has a Patch:  0                        |   Platform:  All
---------------------------------------+----------------------------

Comment (by stippi):

 While parsing the package contents, there is a hook method
 `HandleEntryAttribute(BPackageEntry* entry, BPackageEntryAttribute*
 attribute)`. And `BPackageEntryAttribute` has a method `Data()`. I have
 not checked it, but I assume that is how you can get to the icon. You
 should be able to construct a `SharedBitmap` from the buffer and it would
 automatically parse the icon data, even non-vector icons.

--
Ticket URL: <https://dev.haiku-os.org/ticket/11563#comment:23>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: