app: in gimp_widget_blink_cancel(), avoid redrawing non-blinking widget

Since commit fe139e5662, when
blinking a widget, we cancel blinking for all its ancestors.  Avoid
redrawing all the ancestors as a result, unless they're actually
blinking.  This prevents some noticeable lag when blinking a
widget.
This commit is contained in:
Ell 2018-12-10 14:14:34 -05:00
parent 5a157bf1ba
commit 5a2dee29d7
1 changed files with 5 additions and 2 deletions

View File

@ -1367,9 +1367,12 @@ gimp_widget_blink_cancel (GtkWidget *widget)
{
g_return_if_fail (GTK_IS_WIDGET (widget));
gimp_highlight_widget (widget, FALSE);
if (g_object_get_data (G_OBJECT (widget), "gimp-widget-blink"))
{
gimp_highlight_widget (widget, FALSE);
g_object_set_data (G_OBJECT (widget), "gimp-widget-blink", NULL);
g_object_set_data (G_OBJECT (widget), "gimp-widget-blink", NULL);
}
}
/**