Changeset 6e6cae5be2e7e9f5fc4c8bbb8192257270e22347
- 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
| rcb2ad9e |
r6e6cae5 |
|
| 44 | 44 | |
|---|
| 45 | 45 | CtrlTree::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 ): |
|---|
| 59 | 59 | CtrlGeneric( pIntf,rHelp, pVisible), m_rTree( rTree), m_rFont( rFont ), |
|---|
| 60 | 60 | m_pBgBitmap( pBgBitmap ), m_pItemBitmap( pItemBitmap ), |
|---|
| … | … | |
| 133 | 133 | void CtrlTree::onUpdate( Subject<VarTree> &rTree ) |
|---|
| 134 | 134 | { |
|---|
| | 135 | // Invalidate the position when the tree is updated |
|---|
| | 136 | m_lastPos = m_rTree.begin(); |
|---|
| | 137 | |
|---|
| 135 | 138 | autoScroll(); |
|---|
| 136 | 139 | m_pLastSelected = NULL; |
|---|