mirror of https://github.com/GNOME/gimp.git
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:
parent
5a157bf1ba
commit
5a2dee29d7
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue