Commit fac7e3a2 authored by Olivier Teulière's avatar Olivier Teulière

* skins2: handle "item-deleted" variable

parent 27fdfcfd
......@@ -101,9 +101,14 @@ VlcProc::VlcProc( intf_thread_t *pIntf ): SkinObject( pIntf ),
// Called when the playlist changes
var_AddCallback( pIntf->p_sys->p_playlist, "intf-change",
onIntfChange, this );
/* FIXME : properly handle item-append*/
// Called when a playlist item is added
// TODO: properly handle item-append
var_AddCallback( pIntf->p_sys->p_playlist, "item-append",
onIntfChange, this );
// Called when a playlist item is deleted
// TODO: properly handle item-deleted
var_AddCallback( pIntf->p_sys->p_playlist, "item-deleted",
onIntfChange, this );
// Called when the "interface shower" wants us to show the skin
var_AddCallback( pIntf->p_sys->p_playlist, "intf-show",
onIntfShow, this );
......@@ -141,6 +146,10 @@ VlcProc::~VlcProc()
var_DelCallback( getIntf()->p_sys->p_playlist, "intf-change",
onIntfChange, this );
var_DelCallback( getIntf()->p_sys->p_playlist, "item-append",
onIntfShow, this );
var_DelCallback( getIntf()->p_sys->p_playlist, "item-deleted",
onIntfShow, this );
var_DelCallback( getIntf()->p_sys->p_playlist, "intf-show",
onIntfShow, this );
var_DelCallback( getIntf()->p_sys->p_playlist, "playlist-current",
......
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