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

Wayland message box: improve zenity argument handling #11408

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

marcin-serwin
Copy link
Contributor

Description

When no extra buttons are passed to zenity with --question --switch
arguments it fails to show anything, however, SDL3 still reports
success. To handle this case, we pass an additional "OK" button.

The double quotes were passed literally to the zenity arguments which
resulted in the message box displaying literal "" when no text was
given. The empty string is more logical in this case, e.g., the empty
title results in the message box having lesser height.

Existing Issue(s)

When no extra buttons are passed to zenity with `--question --switch`
arguments it fails to show anything, however, SDL3 still reports
success. To handle this case, we pass an additional "OK" button.
The double quotes were passed literally to the zenity arguments which
resulted in the message box displaying literal `""` when no text was
given. The empty string is more logical in this case, e.g., the empty
title results in the message box having lesser height.
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.

1 participant