- if( i_count < p_playlist->i_size && !b_changed_view )
- {
- i_current_view = VIEW_CATEGORY;
- b_changed_view = VLC_TRUE;
- Rebuild( VLC_FALSE );
- }
- else if( i_count != p_playlist->i_size )
- {
- statusbar->SetStatusText( wxString::Format( wxU(_(
- "%i items in playlist (%i not shown)")),
- p_playlist->i_size,
- p_playlist->i_size - i_count ) );
- }
- else
- {
- statusbar->SetStatusText( wxString::Format( wxU(_(
- "%i items in playlist")),
- p_playlist->i_size ), 0 );
- }
-
- if( b_root )
- {
- /* Put callbacks back online */
- var_AddCallback( p_playlist, "intf-change", PlaylistChanged, this );
- var_AddCallback( p_playlist, "playlist-current", PlaylistNext, this );
- var_AddCallback( p_playlist, "item-change", ItemChanged, this );
- var_AddCallback( p_playlist, "item-append", ItemAppended, this );
- var_AddCallback( p_playlist, "item-deleted", ItemDeleted, this );