app: get rid of hardcoding GDK_SHIFT_MASK in tools/
gimp_suggest_modifiers(): change "shift_format" and "control_format" parameters to "extend_selection_format" and "toggle_behavior_format", which fixes the longstanding problem that the function did the right thing only by accident. tools: use gimp_get_extend_selection_mask() instead of GDK_SHIFT_MASK which is not 100% semantically correct in all cases, but at least a step in the right direction to make the tool modifiers easier to improve.
This commit is contained in:
@ -57,8 +57,8 @@ GimpTabStyle gimp_preview_tab_style_to_icon (GimpTabStyle tab_st
|
||||
const gchar * gimp_get_mod_string (GdkModifierType modifiers);
|
||||
gchar * gimp_suggest_modifiers (const gchar *message,
|
||||
GdkModifierType modifiers,
|
||||
const gchar *shift_format,
|
||||
const gchar *control_format,
|
||||
const gchar *extend_selection_format,
|
||||
const gchar *toggle_behavior_format,
|
||||
const gchar *alt_format);
|
||||
GimpChannelOps gimp_modifiers_to_channel_op (GdkModifierType modifiers);
|
||||
GdkModifierType gimp_replace_virtual_modifiers (GdkModifierType modifiers);
|
||||
|
Reference in New Issue
Block a user