From 66cb79f62ed91afca70c3828f2988da07d922a00 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 27 Mar 2023 06:23:35 +0200 Subject: [PATCH] magnifier: Don't check for visibility gtk_widget_queue_draw() already does that. --- gtk/gtkmagnifier.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gtk/gtkmagnifier.c b/gtk/gtkmagnifier.c index bca4db6b8a..e606ae23e8 100644 --- a/gtk/gtkmagnifier.c +++ b/gtk/gtkmagnifier.c @@ -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