[gtk/about-dialog-icon-size: 4/4] iconhelper: Recreate the texture when needed
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/about-dialog-icon-size: 4/4] iconhelper: Recreate the texture when needed
- Date: Mon, 11 Jan 2021 21:52:25 +0000 (UTC)
commit 8fffce16772cdfcd9ab76dc5fa4a6db261195c7e
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jan 11 16:37:55 2021 -0500
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.
gtk/gtkiconhelper.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 39ccaf044b..54b06396f6 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]