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