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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user