mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-04 01:43:24 +00:00
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:
parent
c7979e7f06
commit
ebf99132eb
10 changed files with 168 additions and 94 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue