FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix BMenuItem shortcut default by cyberman · Pull Request #25 · coolcoder613eb/Haiku-PyAPI · GitHub

Repository navigation

Fix BMenuItem shortcut default - #25

Open
cyberman wants to merge 1 commit into
coolcoder613eb:mainfrom
Be-Quiet-Home:fix-bmenuitem-shortcut-default
Open

cyberman wants to merge 1 commit into
coolcoder613eb:mainfrom
Be-Quiet-Home:fix-bmenuitem-shortcut-default

Conversation

cyberman commented Jul 29, 2026 •
edited
Loading

Copy link
Copy Markdown

Problem

The optional BMenuItem shortcut is registered with the integer default 0, but pybind11 exposes the bound C++ char parameter as a Python string.

Constructing a menu item without an explicit shortcut therefore fails argument conversion.

Fix

Use the null character '\0' as the default value.

Validation

Verified construction without a shortcut and with explicit null and key shortcuts.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL