mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 22:10:08 +00:00
magnifier: Don't check for visibility
gtk_widget_queue_draw() already does that.
This commit is contained in:
parent
8cf3a95d8c
commit
66cb79f62e
@ -270,7 +270,6 @@ _gtk_magnifier_set_coords (GtkMagnifier *magnifier,
|
|||||||
magnifier->x = x;
|
magnifier->x = x;
|
||||||
magnifier->y = y;
|
magnifier->y = y;
|
||||||
|
|
||||||
if (gtk_widget_is_visible (GTK_WIDGET (magnifier)))
|
|
||||||
gtk_widget_queue_draw (GTK_WIDGET (magnifier));
|
gtk_widget_queue_draw (GTK_WIDGET (magnifier));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -303,7 +302,6 @@ _gtk_magnifier_set_magnification (GtkMagnifier *magnifier,
|
|||||||
if (magnifier->resize)
|
if (magnifier->resize)
|
||||||
gtk_widget_queue_resize (GTK_WIDGET (magnifier));
|
gtk_widget_queue_resize (GTK_WIDGET (magnifier));
|
||||||
|
|
||||||
if (gtk_widget_is_visible (GTK_WIDGET (magnifier)))
|
|
||||||
gtk_widget_queue_draw (GTK_WIDGET (magnifier));
|
gtk_widget_queue_draw (GTK_WIDGET (magnifier));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user