app: create a new pixel-size-set action for Ink and Brush tools.

Once this is done, I got rid of the ugly hack I added over the already
ugly hack used on "*-set" enum actions.
This commit is contained in:
Jehan 2022-04-02 23:30:03 +02:00
parent c7979e7f06
commit ebf99132eb
10 changed files with 168 additions and 94 deletions

View file

@ -1788,7 +1788,7 @@ layers_opacity_cmd_callback (GimpAction *action,
opacity = action_select_value (select_type,
gimp_layer_get_opacity (iter->data),
0.0, 1.0, 1.0,
1.0 / 255.0, 0.01, 0.1, 0.0, FALSE, FALSE);
1.0 / 255.0, 0.01, 0.1, 0.0, FALSE);
gimp_layer_set_opacity (iter->data, opacity, push_undo);
}
@ -1842,7 +1842,7 @@ layers_mode_cmd_callback (GimpAction *action,
index = layers_mode_index (layer_mode, modes, n_modes);
index = action_select_value (select_type,
index, 0, n_modes - 1, 0,
0.0, 1.0, 1.0, 0.0, FALSE, FALSE);
0.0, 1.0, 1.0, 0.0, FALSE);
layer_mode = modes[index];
g_free (modes);