Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
945deeb2
Commit
945deeb2
authored
Nov 22, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't rebuild the tree on node sort
parent
678c0546
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
modules/gui/wxwindows/playlist.cpp
modules/gui/wxwindows/playlist.cpp
+12
-1
modules/gui/wxwindows/wxwindows.h
modules/gui/wxwindows/wxwindows.h
+1
-0
No files found.
modules/gui/wxwindows/playlist.cpp
View file @
945deeb2
...
...
@@ -468,6 +468,14 @@ void Playlist::CreateNode( playlist_t *p_playlist, playlist_item_t *p_node,
-
1
,
-
1
,
new
PlaylistItem
(
p_node
)
);
treectrl
->
SetItemImage
(
node
,
p_node
->
input
.
i_type
);
UpdateNodeChildren
(
p_playlist
,
p_node
,
node
);
}
void
Playlist
::
UpdateNodeChildren
(
playlist_t
*
p_playlist
,
playlist_item_t
*
p_node
,
wxTreeItemId
node
)
{
for
(
int
i
=
0
;
i
<
p_node
->
i_children
;
i
++
)
{
/* Append the item */
...
...
@@ -1507,7 +1515,10 @@ void Playlist::OnPopupSort( wxMenuEvent& event )
playlist_RecursiveNodeSort
(
p_playlist
,
p_wxitem
->
p_item
,
SORT_TITLE_NODES_FIRST
,
ORDER_NORMAL
);
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
b_need_update
=
VLC_TRUE
;
treectrl
->
DeleteChildren
(
i_popup_item
);
UpdateNodeChildren
(
p_playlist
,
p_wxitem
->
p_item
,
i_popup_item
);
vlc_object_release
(
p_playlist
);
}
}
...
...
modules/gui/wxwindows/wxwindows.h
View file @
945deeb2
...
...
@@ -838,6 +838,7 @@ private:
/* Update */
void
UpdateNode
(
playlist_t
*
,
playlist_item_t
*
,
wxTreeItemId
);
void
UpdateNodeChildren
(
playlist_t
*
,
playlist_item_t
*
,
wxTreeItemId
);
void
CreateNode
(
playlist_t
*
,
playlist_item_t
*
,
wxTreeItemId
);
wxTreeItemId
FindItem
(
wxTreeItemId
,
playlist_item_t
*
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment