Commit Graph

5 Commits

Author SHA1 Message Date
89772351c9 Issue #9349: Add concept of "short" (contextual) vs "long" label for actions.
All Gimp*ActionEntry (except GimpProcedureActionEntry) now have a short_label
member.
This commit doesn't add any new short label yet. It just fixes the struct usage,
and fixes a few localization contexts here and there when I saw such broken
strings.

I also fixed a few gradient editor action strings which were not proper labels
(like "splitmidpoint" or "splituniform", or missing uppercase, etc.).
2023-04-14 17:48:57 +02:00
83c466bdec app: don't implement GtkAction activate() anymore.
All action types work fine with GAction activate() now.
2023-04-12 22:07:08 +02:00
726e690d38 app: make the GimpContext a mandatory property for a Gimp*Action.
Making the action be context-awareness will be useful, in particular as we'll
have access to the GtkApplication.
2023-04-12 22:07:08 +02:00
c65a4e8a5c app: override GAction's activate() virtual method for GimpDoubleAction, …
… GimpStringAction, GimpEnumAction and GimpProcedureAction.

All these are child classes of GimpActionImpl.
2023-04-12 22:07:07 +02:00
12be7bdc37 app: adding GimpDoubleAction types of actions.
These actions can be activated with a double value. These will be useful
to create new types of size action, which are based on accurate pixel
values instead of an enum hacked to set per-mille values between a
min/max.
2022-08-17 14:20:18 +02:00