Commit Graph

24 Commits

Author SHA1 Message Date
1d7034fb88
[GTK3] Add GtkRadioMenuItems at runtime
Defining them in the UI definition file was buggy in Unity
and MATE (Mutiny layout). Somehow creating them manually
via the API works around that bug.

The only problem is that Unity fails to update the
marker for the active menu item on the *first* click.
It then lags one item update behind, i.e.
1) CGB is active
2) Click on AGB, CGB is still rendered as active
3) Click on any (including AGB) of the options, now AGB is rendered as active

Also: The Gnome 3 style hamburger menu has been removed.
2020-05-19 02:33:25 +02:00
6ea36bbc39
[GTK3] Check if config changed before saving
This uses the file modification date and opens a choice dialog if
the date has changed since.
2020-05-19 02:33:25 +02:00
f6838a901c
[GTK3] Persist “mute sound” state in config 2020-05-19 02:33:25 +02:00
bdb22e7034
[GTK3] Save selected model family 2020-05-19 02:33:25 +02:00
2887110e99
[GTK3] Restructure config_t by using sub structs 2020-05-19 02:33:25 +02:00
b6c949fa82
[GTK3] Add rumble mode setting
Also we now fall back to SDL_GameControllerRumble if a controller
doesn’t support the haptic feedback API.
This still poses problems with the WUP-028 but for now cou can disable
rumble completely if you want to use this controller adapter.
2020-05-19 02:33:24 +02:00
89080ef47e
[GTK3] Move loose state variables into GuiData struct 2020-05-19 02:33:24 +02:00
9b360ef292
[GTK3] Add DMG color palettes 2020-05-19 02:33:23 +02:00
b142227577
[GTK3] Implement the new SGB border options 2020-05-19 02:33:23 +02:00
53934aedec
[GTK3] Add the new frame blending modes to the GUI 2020-05-19 02:33:23 +02:00
9224b3f2ac
[GTK3] Convert to structured logging 2020-05-19 02:33:22 +02:00
6a9ca41970
[GTK3] Allow switching the emulated model 2020-05-19 02:33:22 +02:00
df9189448d
[GTK3] Implement more menu handlers
Also fix some memory leaks.
2020-05-19 02:33:22 +02:00
0270ed336e
[GTK3] Rename "gtkget" macro "builder_get" 2020-05-19 02:33:21 +02:00
517ad73e64
[GTK3] Make dummy preference callbacks functional 2020-05-19 02:33:21 +02:00
8ce3b02833
[GTK3] Somewhat working GtkDrawingArea fallback 2020-05-19 02:33:20 +02:00
a83d6eca5b
[GTK3] Fix a few problems with the settings 2020-05-19 02:33:20 +02:00
a243325b8c
[GTK3] Implement boot ROM search path preference 2020-05-19 02:33:20 +02:00
023d43e893
[GTK3] More work on preferences done 2020-05-19 02:33:20 +02:00
0d07a389ca
[GTK3] Make UI react to video config changes 2020-05-19 02:33:20 +02:00
fc81729533
[GTK3] Get color correction & highpass from config 2020-05-19 02:33:20 +02:00
3984359008
[GTK3] Save settings to key file 2020-05-19 02:33:19 +02:00
959f0cc88e
[GTK3] Load/save settings from/to file 2020-05-19 02:33:19 +02:00
f3f1bf293a
[GTK3] Move config handling into settings.c 2020-05-19 02:33:19 +02:00