Changeset 6e6cae5be2e7e9f5fc4c8bbb8192257270e22347

Show
Ignore:
Timestamp:
09/03/05 21:22:47 (3 years ago)
Author:
Olivier Teulière <ipkiss@videolan.org>
git-committer:
Olivier Teulière <ipkiss@videolan.org> 1125775367 +0000
git-parent:

[81b184baaf5f9dbff30029252e520c1e9b2bd005]

git-author:
Olivier Teulière <ipkiss@videolan.org> 1125775367 +0000
Message:
  • skins2/controls/ctrl_tree.cpp: Fixed a nasty bug. The tree playlist should
    now be much more stable.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/skins2/controls/ctrl_tree.cpp

    rcb2ad9e r6e6cae5  
    4444 
    4545CtrlTree::CtrlTree( intf_thread_t *pIntf, 
    46                   VarTree &rTree, 
    47                   const GenericFont &rFont, 
    48                   const GenericBitmap *pBgBitmap, 
    49                   const GenericBitmap *pItemBitmap, 
    50                   const GenericBitmap *pOpenBitmap, 
    51                   const GenericBitmap *pClosedBitmap, 
    52                   uint32_t fgColor, 
    53                   uint32_t playColor, 
    54                   uint32_t bgColor1, 
    55                   uint32_t bgColor2, 
    56                   uint32_t selColor, 
    57                   const UString &rHelp, 
    58                   VarBool *pVisible ): 
     46                    VarTree &rTree, 
     47                    const GenericFont &rFont, 
     48                    const GenericBitmap *pBgBitmap, 
     49                    const GenericBitmap *pItemBitmap, 
     50                    const GenericBitmap *pOpenBitmap, 
     51                    const GenericBitmap *pClosedBitmap, 
     52                    uint32_t fgColor, 
     53                    uint32_t playColor, 
     54                    uint32_t bgColor1, 
     55                    uint32_t bgColor2, 
     56                    uint32_t selColor, 
     57                    const UString &rHelp, 
     58                    VarBool *pVisible ): 
    5959    CtrlGeneric( pIntf,rHelp, pVisible), m_rTree( rTree), m_rFont( rFont ), 
    6060    m_pBgBitmap( pBgBitmap ), m_pItemBitmap( pItemBitmap ), 
     
    133133void CtrlTree::onUpdate( Subject<VarTree> &rTree ) 
    134134{ 
     135    // Invalidate the position when the tree is updated 
     136    m_lastPos = m_rTree.begin(); 
     137 
    135138    autoScroll(); 
    136139    m_pLastSelected = NULL;