[gtk+/gtk-3-20] iconhelper: Invalidate on clear()
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-20] iconhelper: Invalidate on clear()
- Date: Thu, 14 Apr 2016 19:18:03 +0000 (UTC)
commit 6308d3a03df05fd01a7f659774d0bce65c162ed3
Author: Benjamin Otte <otte redhat com>
Date: Thu Apr 14 21:03:27 2016 +0200
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
gtk/gtkiconhelper.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 212eef9..b8737e7 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]