magnifier: Don't check for visibility

gtk_widget_queue_draw() already does that.
This commit is contained in:
Benjamin Otte 2023-03-27 06:23:35 +02:00
parent 8cf3a95d8c
commit 66cb79f62e

View File

@ -270,8 +270,7 @@ _gtk_magnifier_set_coords (GtkMagnifier *magnifier,
magnifier->x = x;
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));
}
void
@ -303,8 +302,7 @@ _gtk_magnifier_set_magnification (GtkMagnifier *magnifier,
if (magnifier->resize)
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));
}
double