tom-seddon / b2

BBC Micro emulator for Windows, OS X, and Linux
114 stars 13 forks source link

File dialog spring clean #387

Open tom-seddon opened 1 week ago

tom-seddon commented 1 week ago

Reported here: https://www.stardot.org.uk/forums/viewtopic.php?p=438465#p438465

tom-seddon commented 1 week ago

Should probably be specifying GTK_FILE_CHOOSER_ACTION_SAVE here: https://github.com/tom-seddon/b2/blob/a8b4f2aa87aa5823b8168de8cf9a6cdaa7c32071/src/b2/native_ui_gtk.cpp#L193

tom-seddon commented 1 week ago

Suggested patch here: https://www.stardot.org.uk/forums/viewtopic.php?p=439030#p439030

tom-seddon commented 4 days ago

I think this actually needs a separate create file dialog type - to be continued.

The suggested patch looks good enough to be getting on with.

tom-seddon commented 1 day ago

The Windows default extension stuff has never worked right either... and when creating a new file, it should supply a suggested file name...

Patch has been applied, so the worst of it is fixed. But I think this does need a certain amount of looking at, across all platforms.

Poked about on Windows, and eyed the GTK docs. macOS... unknown.