[gtk+] icon-helper: don't reset pixel_size when clearing the helper



commit e37c55aa3eeeec6860de01e937b332697eecc529
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Nov 30 18:15:05 2011 -0500

    icon-helper: don't reset pixel_size when clearing the helper
    
    Don't reset the pixel size when clearing the helper; pixel-size is e.g a
    property of GtkImage, which is stable unless explicitly set.

 gtk/gtkiconhelper.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c
index 081e619..46724f9 100644
--- a/gtk/gtkiconhelper.c
+++ b/gtk/gtkiconhelper.c
@@ -66,7 +66,6 @@ _gtk_icon_helper_clear (GtkIconHelper *self)
 
   self->priv->storage_type = GTK_IMAGE_EMPTY;
   self->priv->icon_size = GTK_ICON_SIZE_INVALID;
-  self->priv->pixel_size = -1;
   self->priv->last_rendered_state = GTK_STATE_FLAG_NORMAL;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]