Commit Graph

11 Commits

Author SHA1 Message Date
Le Philousophe
772e7364d1 BACKENDS: DIALOGS: GTK: Set and restore locale when using GTK dialogs
Gtk sets the locale when it's set up to make parts of the UI localized.
We set it properly before displaying the dialog and reset to "C"
afterwards to avoid portability issues in number parsing functions.

Fixes #14196
Thanks to @rootfather and @elasota for the investigation.
2023-03-03 08:45:21 +01:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Torbjörn Andersson
03b227fdf0 BACKENDS: DIALOGS: GTK: Keep ScummVM mouse pointer alive during dialog
Also, throttle the rate at which updateScreen() is called. I don't know
if it makes any difference, but it seems like a polite thing to do.
2021-11-09 09:45:36 +01:00
Torbjörn Andersson
bb0ce7ff25 BACKENDS: DIALOG: GTK: Keep main window updated during GTK+ dialog
Otherwise, anything moving across the main window while the dialog is
open may leave ugly trails. At least it does for me.
2021-11-08 08:46:47 +01:00
Vladimir Serbinenko
68a9136e4d
COMMON: Rewrite Encoder and drop dependency on iconv (#2586)
Different platforms have different levels of support of encodings and
often have slight variations. We already have tables for most encoding
with only CJK missing. Full transcoding inclusion allows us to get reliable
encoding results independently of platform. The biggest con is the need for
external tables encoding.dat.

It removes a duplicate table for korean in graphics/korfont.cpp
2020-11-15 16:20:35 +01:00
Eugene Sandulenko
2134a2dc72 BACKENDS: DIALOGS: Properly store last path in Gtk file browser 2020-10-23 00:32:21 +02:00
aryanrawlani28
984e7fae99 BACKENDS: DIALOGS: Remove redundant code for GTK Dialogs.
- Dialogs take in const gchar *, so no need to convert to char* and then pass it along.
2020-08-30 14:43:41 +02:00
aryanrawlani28
d4a280ef29 BACKENDS: DIALOGS: GTK: Fix incorrect memory usage & replace unsafe code.
- Encoding::convert which was previously used needed to be freed by the caller.
- With the direct conversion to utf8 by .encode(), this doesn't need to happen anymore
2020-08-30 14:43:41 +02:00
aryanrawlani28
9bf3f73d8a GUI: U32: Use U32Strings for native dialogs
- Make DialogManager showFileBrowser take in u32
- Show filebrowser with u32 in MacOS and GTK
2020-08-30 14:43:41 +02:00
Cameron Cawley
539ae3cda7 GTK: Support building with older versions of GTK 2020-06-24 21:05:43 +01:00
SupSuper
897efb1454 POSIX: Add support for native GTK file browserOnly enabled on platforms with libgtk 2020-03-22 20:46:42 +02:00