iconhelper: Size no longer depends on scale

This is a leftover from GTK3 when iconhelper sizes depended on the
texture size.

Now we only need to queue a redraw with the new icon.

Fixes warnings about resizes during allocate caused by scale change
notification during allocation of GtkWindow.
This commit is contained in:
Benjamin Otte
2024-08-04 01:18:42 +02:00
parent 8e676c7360
commit 040974c8a2

View File

@@ -339,8 +339,7 @@ gtk_icon_helper_invalidate (GtkIconHelper *self)
g_clear_object (&self->paintable);
self->texture_is_symbolic = FALSE;
if (!GTK_IS_CSS_TRANSIENT_NODE (self->node))
gtk_widget_queue_resize (self->owner);
gtk_widget_queue_draw (self->owner);
}
void