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

  • From: "TigerKid001" <trac@xxxxxxxxxxxx>
  • Date: Thu, 12 Feb 2015 08:11:21 -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 TigerKid001):

 Hi stippi. I tried to add the icons to the list items as you suggested. I
 assumed that the hook functions(HandleEntry, HandleEntryAttribute,
 HandleEntryDone) are executed consecutively. So, in HandleEntryAttribute,
 I'm trying extract the icon by:
 {{{
         int32 attr = (int32) attribute->Data().InlineData();
         SharedBitmap shared(attr);
         fPackageIcon = (BBitmap*) shared.Bitmap(SharedBitmap::SIZE_16);
 }}}
 and then make a PackageRow with this icon in HandleEntryDone function.
 But still, the icons are not showing up. Moreover, the list is not being
 filled correctly, but it was when when the list-populating code was in
 HandleEntry.
 Where am i going wrong?

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

Other related posts: