Doubleclick something in the playlist makes it start playing if status is stopped
This commit is contained in:
parent
479aecb564
commit
09494985d1
3 changed files with 24 additions and 0 deletions
|
@ -47,6 +47,9 @@ XMMSHandler::XMMSHandler (void) : sigc::trackable ()
|
|||
r = m_xmmsc->broadcast_playback_current_id ();
|
||||
r->connect (sigc::mem_fun (this, &XMMSHandler::playback_current_id));
|
||||
|
||||
r = m_xmmsc->playback_status ();
|
||||
r->connect (sigc::mem_fun (this, &XMMSHandler::playback_status));
|
||||
|
||||
r = m_xmmsc->broadcast_playback_status ();
|
||||
r->connect (sigc::mem_fun (this, &XMMSHandler::playback_status));
|
||||
|
||||
|
@ -151,6 +154,10 @@ XMMSHandler::playback_status (XMMSResultValue<uint> *res)
|
|||
res->getValue (&status);
|
||||
|
||||
emit playbackStatusChanged (status);
|
||||
|
||||
if (res->getClass() == XMMSC_RESULT_CLASS_DEFAULT) {
|
||||
delete res;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue