Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove mutebug dialog #8875

Merged
merged 2 commits into from
Jan 23, 2016
Merged

Remove mutebug dialog #8875

merged 2 commits into from
Jan 23, 2016

Conversation

ronie
Copy link
Member

@ronie ronie commented Jan 15, 2016

it's always been a pita for skinners to have two dialogs for displaying volume info in kodi,
the major issue is getting a decent transition between the volumbar/mutebug dialogs.

this merges the mutebug functionality into the volumebar dialog.
one less xml for skinners to code and no more odd workarounds needed to get a seamless transition.

@ronie ronie added RFC PR submitted for gathering feedback Component: GUI engine Component: Skin labels Jan 15, 2016
@MartijnKaijser
Copy link
Member

\o/

@MartijnKaijser
Copy link
Member

@mkortstiege for a code check :)

@mkortstiege
Copy link
Member

Looks good to me. Thanks.

@ronie
Copy link
Member Author

ronie commented Jan 18, 2016

jenkins build this please


void CGUIDialog::CancelAutoClose(void)
{
if (m_autoClosing && m_active)

This comment was marked as spam.

@ronie
Copy link
Member Author

ronie commented Jan 19, 2016

updated as @xhaggi suggested.

@xhaggi
Copy link
Member

xhaggi commented Jan 19, 2016

one last question how do we handle volume changes e. g. mute/unmute with json-rpc? do we also send the necessary actions?

@ronie
Copy link
Member Author

ronie commented Jan 19, 2016

tested json-rpc with the Input.ExecuteAction method. works ok.

@xhaggi
Copy link
Member

xhaggi commented Jan 19, 2016

@ronie you can also use Application.SetMute and Application.SetVolume json-rpc commands.

See http://kodi.wiki/view/JSON-RPC_API/v6#Application.SetMute

Both send the desired actions except if you directly set a volume value which calls CApplication::SetVolume

See https://github.com/xbmc/xbmc/blob/master/xbmc/interfaces/json-rpc/ApplicationOperations.cpp#L65
https://github.com/xbmc/xbmc/blob/master/xbmc/Application.cpp#L4744

Could you please verify if this will work?

@xhaggi
Copy link
Member

xhaggi commented Jan 19, 2016

Ahh sorry I missed that line https://github.com/xbmc/xbmc/blob/master/xbmc/interfaces/json-rpc/ApplicationOperations.cpp#L92 which triggers the action in any case.

@MartijnKaijser
Copy link
Member

jenkins build this please

1 similar comment
@MartijnKaijser
Copy link
Member

jenkins build this please

@MartijnKaijser MartijnKaijser added this to the Krypton 17.0-alpha1 milestone Jan 23, 2016
MartijnKaijser added a commit that referenced this pull request Jan 23, 2016
@MartijnKaijser MartijnKaijser merged commit b24dea0 into xbmc:master Jan 23, 2016
@ronie ronie deleted the dialogvolumebar branch February 26, 2016 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: GUI engine Component: Skin RFC PR submitted for gathering feedback
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants