-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
SDL3: cannot set file dialog caption #11133
Comments
Good point. @Semphriss, can you find a way to fix this without changing the ABI? Maybe add a property-based dialog creation function? |
IIRC, there were a few options to change the appearance of file dialogs, including the title, buttons' labels, and more, but their availability varied greatly between platforms, so I initially left anything cosmetic out of the (already quite long) functions. I can make a function like |
That makes sense. A properties based API has more flexibility, because it can ignore anything that isn't supported on the platform.
Sure, that would be great. |
+1 for properties API Concerning my particular use case, only the title has importance, because other labels are already localized by OS. The portal has its title harcoded around here; for information, I already tried replacing it with an empty string, hoping the portal might provide a default localized name in its place, but the dialog just came up with an empty title. SDL/src/dialog/unix/SDL_portaldialog.c Line 430 in 02f3a96
|
@slouken I would need advice for a design decision: I noticed that some functions which accept properties have their mandatory arguments separate from the properties. For file dialogs, the only really mandatory option is the callback function. Should I:
|
Good question. Let's have the function and userdata as separate parameters. |
The new file dialog API does not allow the title of the dialog to be set.
This would be good to have, if only to be able to make property localized applications.
(The Linux titles are hardcoded.)
SDL 3.1.3
The text was updated successfully, but these errors were encountered: