[haiku-bugs] [Haiku] #7051: Deskbar doesn't remember your expanded items when you switch modes

  • From: "jscipione" <trac@xxxxxxxxxxxx>
  • Date: Wed, 03 Aug 2011 16:30:31 -0000

#7051: Deskbar doesn't remember your expanded items when you switch modes
------------------------------------+----------------------------
   Reporter:  jscipione             |      Owner:  axeld
       Type:  enhancement           |     Status:  new
   Priority:  normal                |  Milestone:  R1
  Component:  Applications/Deskbar  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:
Has a Patch:  1                     |   Platform:  All
------------------------------------+----------------------------

Attachment added (by jscipione):

Deskbar Persist Expanded State 7.diff (6.9 KB) - Made sExpandedItems not static 
and renamed it fExpandedItems. When Deskbar starts, generally at startup, also 
after a crash or because it was explicitly quit and restarted items are 
expanded if you set ExpandNewTeams flag. This fixes #4830. Code cleanups 
abound. Fixed an off-by-one error in trunk when reading in the expanded items 
list. Axel, please look at this patch I believe that it is now ready to go. One 
last thing. Use C++ style static_cast rather than C style cast when casting to 
and from void* in the fExpandedItems BList. Ensure that UpdatePlacement() gets 
called at least once on startup. 

View the file at 
http://dev.haiku-os.org/attachment/ticket/7051/Deskbar%20Persist%20Expanded%20State%207.diff

-- 
Ticket URL: http://dev.haiku-os.org/ticket/7051
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: