mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
iconhelper: Recreate the texture when needed
When the icon size changes, we want to reload themed icons. This was showing up as the GtkImage in about dialogs getting a big size with the same small icon upon changing -gtk-icon-size in the inspector.
This commit is contained in:
parent
65eaf8e8c4
commit
73fb28a058
@ -348,7 +348,8 @@ gtk_icon_helper_invalidate_for_change (GtkIconHelper *self,
|
||||
GtkCssStyleChange *change)
|
||||
{
|
||||
if (change == NULL ||
|
||||
gtk_css_style_change_affects (change, GTK_CSS_AFFECTS_ICON_TEXTURE))
|
||||
gtk_css_style_change_affects (change, GTK_CSS_AFFECTS_ICON_TEXTURE |
|
||||
GTK_CSS_AFFECTS_ICON_SIZE))
|
||||
{
|
||||
/* Avoid the queue_resize in gtk_icon_helper_invalidate */
|
||||
g_clear_object (&self->paintable);
|
||||
|
Loading…
Reference in New Issue
Block a user