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

  • From: "TigerKid001" <trac@xxxxxxxxxxxx>
  • Date: Fri, 13 Feb 2015 12:06:43 -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. Bothering you again. So, i changed the HandleEntryAttribute to
 {{{
         BPackageData data = attribute->Data();
         BMemoryIO source(data.InlineData(),data.Size());
         const SharedBitmap &shared(source);
         fPackageIcon = shared;
 }}}
 Here, `fPackageIcon` is a reference to SharedBitmap. But since references
 must be bound to target objects when created, i dont know what to
 initialize it with. So, i'm stuck at that. Also, i moved the list-
 population part to a new function (which is called from
 HandleEntryAttribute) and the list is filled correctly now.

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

Other related posts: