}
/* Unregister callbacks */
- var_DelCallback( getIntf()->p_sys->p_playlist, "intf-popupmenu",
+ var_DelCallback( getIntf()->p_libvlc, "intf-popupmenu",
PopupMenuCB, this );
}
void Dialogs::destroy( intf_thread_t *pIntf )
{
- if( pIntf->p_sys->p_dialogs )
- {
- delete pIntf->p_sys->p_dialogs;
- pIntf->p_sys->p_dialogs = NULL;
- }
+ delete pIntf->p_sys->p_dialogs;
+ pIntf->p_sys->p_dialogs = NULL;
}
}
/* Register callback for the intf-popupmenu variable */
- var_AddCallback( getIntf()->p_sys->p_playlist, "intf-popupmenu",
+ var_AddCallback( getIntf()->p_libvlc, "intf-popupmenu",
PopupMenuCB, this );
return true;
void Dialogs::showChangeSkin()
{
showFileGeneric( _("Open a skin file"),
- _("Skin files (*.vlt;*.wsz)|*.vlt;*.wsz|Skin files (*.xml)|*.xml"),
+ _("Skin files |*.vlt;*.wsz;*.xml"),
showChangeSkinCB, kOPEN );
}
void Dialogs::showPlaylistLoad()
{
showFileGeneric( _("Open playlist"),
- _("All playlists|*.pls;*.m3u;*.asx;*.b4s;*.xspf|"
- "M3U files|*.m3u|"
- "XSPF playlist|*.xspf"),
+ _("Playlist Files|"EXTENSIONS_PLAYLIST"|"
+ "All Files|*"),
showPlaylistLoadCB, kOPEN );
}
void Dialogs::showPlaylistSave()
{
- showFileGeneric( _("Save playlist"), _("XSPF playlist|*.xspf|M3U file|*.m3u"),
+ showFileGeneric( _("Save playlist"), _("XSPF playlist|*.xspf|"
+ "M3U file|*.m3u|"
+ "HTML playlist|*.html"),
showPlaylistSaveCB, kSAVE );
}