[gtk+] iconhelper: reset original pixbuf scale on clear
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] iconhelper: reset original pixbuf scale on clear
- Date: Tue, 29 Jul 2014 08:19:30 +0000 (UTC)
commit 09a36b1e9fde589ecdf22c11b055f7b4aff8dfd4
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Jul 22 21:27:59 2014 -0700
iconhelper: reset original pixbuf scale on clear
Avoids a previously set value for a different image to accidentally
stick around.
https://bugzilla.gnome.org/show_bug.cgi?id=733416
gtk/gtkiconhelper.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index d2d1706..0ee9957 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -83,6 +83,7 @@ _gtk_icon_helper_clear (GtkIconHelper *self)
self->priv->last_rendered_state = GTK_STATE_FLAG_NORMAL;
self->priv->last_surface_state = GTK_STATE_FLAG_NORMAL;
self->priv->last_surface_scale = 0;
+ self->priv->orig_pixbuf_scale = 1;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]