Commit 0e72bf9d authored by Gildas Bazin's avatar Gildas Bazin

* modules/gui/wxwindows/playlist.cpp: unicode build fixes.

parent d090e475
...@@ -461,22 +461,23 @@ void Playlist::CreateNode( playlist_t *p_playlist, playlist_item_t *p_node, ...@@ -461,22 +461,23 @@ void Playlist::CreateNode( playlist_t *p_playlist, playlist_item_t *p_node,
wxTreeItemId parent ) wxTreeItemId parent )
{ {
long cookie; long cookie;
wxTreeItemId node = treectrl->AppendItem( parent, p_node->input.psz_name, wxTreeItemId node =
-1,-1, treectrl->AppendItem( parent, wxL2U( p_node->input.psz_name ),
new PlaylistItem( p_node ) ); -1,-1, new PlaylistItem( p_node ) );
treectrl->SetItemImage( node, p_node->input.i_type ); treectrl->SetItemImage( node, p_node->input.i_type );
for( int i = 0; i< p_node->i_children ; i++ ) for( int i = 0; i< p_node->i_children ; i++ )
{ {
/* Append the item */ /* Append the item */
if( p_node->pp_children[i]->i_children == -1 ) if( p_node->pp_children[i]->i_children == -1 )
{ {
wxTreeItemId item = treectrl->AppendItem( node, wxTreeItemId item =
p_node->pp_children[i]->input.psz_name, treectrl->AppendItem( node,
-1,-1, wxL2U( p_node->pp_children[i]->input.psz_name ), -1,-1,
new PlaylistItem( p_node->pp_children[i]) ); new PlaylistItem( p_node->pp_children[i]) );
treectrl->SetItemImage( item, treectrl->SetItemImage( item,
p_node->pp_children[i]->input.i_type); p_node->pp_children[i]->input.i_type );
} }
else else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment