gimp/app/gui
Jehan 94ebb4f821 app: serialize and deserialize the actions' accelerators.
gtk_accel_map_load()/gtk_accel_map_save() are not working with the new
GAction-based code. GtkApplication does not seem to have helper functions to
simply load and save accelerators in a file, so we just implement it ourselves.

A few things are missing right now, namely:

- On parsing, it doesn't handle any kind of duplicate accelerators (possible
  especially if someone edited the new shortcutsrc manually).
- On reading, maybe we should only write down the changed (from defaults)
  actions, while keeping the old ones commented-out, as menurc used to be. This
  is actually useful info both for debugging or even for users who want to look
  at this file and see what they changed.
- We should add import code to transform the menurc into shortcutsrc when
  updating GIMP, otherwise all custom shortcuts would get lost.

There is still the question on whether we should add the group name too. I think
we should, expecially for plug-in's procedure actions, though right now these
are just added in the GtkApplication's main action group anyway. I'll see later
to refine this.
2023-04-12 22:07:09 +02:00
..
.gitignore Bug 622934 - Migrate from dbus-glib to glib's GDBus 2013-05-24 23:25:47 +02:00
Makefile.am app: Add in gimpconsoleapp and gimpcoreapp interface 2022-10-09 16:12:07 +02:00
dbus-service.xml app: batch commands won't run on existing instance. 2015-09-28 22:31:21 +02:00
gimpapp.c app: remove useless gimp_core_app_finalize(). 2023-04-12 22:07:08 +02:00
gimpapp.h app: cleanup MR !734. 2022-10-09 16:12:07 +02:00
gimpdbusservice.c app: use gimp_is_restored() rather than object variables. 2022-03-12 18:59:36 +01:00
gimpdbusservice.h app: improve opening images through the DBus service. 2020-11-10 22:33:25 +01:00
gimpuiconfigurer.c libgimbase: merge gimpparam.h into gimpparamspecs.h 2019-07-31 10:16:21 +02:00
gimpuiconfigurer.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gui-message.c app: keep error dialog above. 2020-12-17 22:27:01 +01:00
gui-message.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gui-types.h app: cleanup MR !734. 2022-10-09 16:12:07 +02:00
gui-unique.c Use GetModuleHandleW () 2023-01-24 14:48:44 +00:00
gui-unique.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gui-vtable.c app: prevent multiple registrations of a same action. 2023-04-12 22:07:09 +02:00
gui-vtable.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
gui.c app: serialize and deserialize the actions' accelerators. 2023-04-12 22:07:09 +02:00
gui.h app: cleanup MR !734. 2022-10-09 16:12:07 +02:00
icon-themes.c app: special-case icon theme loading when testing build. 2021-12-23 13:39:43 +01:00
icon-themes.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
meson.build app: Add in gimpconsoleapp and gimpcoreapp interface 2022-10-09 16:12:07 +02:00
modifiers.c app: add a GimpModifiersManager object to GimpDisplayConfig. 2022-08-17 14:20:18 +02:00
modifiers.h app: add a GimpModifiersManager object to GimpDisplayConfig. 2022-08-17 14:20:18 +02:00
session.c Fix various typos 2019-09-21 17:10:46 +00:00
session.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
splash.c app: Add in gimpconsoleapp and gimpcoreapp interface 2022-10-09 16:12:07 +02:00
splash.h app: cleanup MR !734. 2022-10-09 16:12:07 +02:00
themes.c Issue #7023: icon size selection on GIMP 2.99. 2022-09-28 21:11:58 +02:00
themes.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00