forked from AuroraMiddleware/gtk
iconhelper: Invalidate on clear()
When clearing the icon helper, we need to invalidate it. Otherwise the previous icon keeps lingering along. This is not relevant inside gtkiconhelper.c where other code causes the invalidation, but happens when external code calls _gtk_icon_helper_clear(). https://bugzilla.gnome.org/show_bug.cgi?id=765066
This commit is contained in:
parent
7200ac8e56
commit
3bc58d01e3
@ -103,6 +103,8 @@ _gtk_icon_helper_clear (GtkIconHelper *self)
|
||||
self->priv->def = gtk_image_definition_new_empty ();
|
||||
|
||||
self->priv->icon_size = GTK_ICON_SIZE_INVALID;
|
||||
|
||||
gtk_icon_helper_invalidate (self);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user