app: update tool widgets on display-shell changes more granularly
Partially revert commitc73710e410
, avoiding updating tool widgets unconditionally on tool resume in GimpDrawTool -- it's too expensive in general. Instead, handle display-shell changes in GimpToolWidget, by adding GimpToolWidget::update_on_{scale,scroll,rotate} flags, which subclasses can use to request an update on any of these events. Set the flags as necessary for the affected widgets. (cherry picked from commitafda774f44
)
This commit is contained in:
@ -224,6 +224,7 @@ gimp_tool_focus_class_init (GimpToolFocusClass *klass)
|
||||
widget_class->motion_modifier = gimp_tool_focus_motion_modifier;
|
||||
widget_class->hover_modifier = gimp_tool_focus_hover_modifier;
|
||||
widget_class->get_cursor = gimp_tool_focus_get_cursor;
|
||||
widget_class->update_on_scale = TRUE;
|
||||
|
||||
g_object_class_install_property (object_class, PROP_TYPE,
|
||||
g_param_spec_enum ("type", NULL, NULL,
|
||||
|
Reference in New Issue
Block a user