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

pvr: Pass selected item to menu hooks #2812

Closed
wants to merge 1 commit into from

Conversation

fetzerch
Copy link
Member

@fetzerch fetzerch commented Jun 2, 2013

Currently it is not possible to retrieve any information about the
selected item in the addon's menu hook callback. Therefore menu
hooks can only trigger actions per category, but not per item.

This patch removes this limitation by extending CallMenuHook with
an item parameter representing the type (PVR_MENUHOOK_CAT) and the
data of the currently selected item. The type PVR_MENUHOOK_UNKNOWN
indicates that no selection is available (as for settings hooks).

Needs PVR API version bump and the corresponding changes in the addon's repository.

I hope this can be considered, since it allows to call some backend specific functionalities.

Currently it is not possible to retrieve any information about the
selected item in the addon's menu hook callback. Therefore menu
hooks can only trigger actions per category, but not per item.

This patch removes this limitation by extending CallMenuHook with
an item parameter representing the type (PVR_MENUHOOK_CAT) and the
data of the currently selected item. The type PVR_MENUHOOK_UNKNOWN
indicates that no selection is available (as for settings hooks).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant