[gnome-shell] StIcon: fill the structure corretly in _init



commit a2528a7a98ecb1bb5771ac9a4f594ad92f03cf71
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Thu Dec 9 18:01:27 2010 +0100

    StIcon: fill the structure corretly in _init
    
    GSlice already fills with zeros when allocating, but we need to
    set the shadow_material field appropriately.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=634814

 src/st/st-icon.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/st/st-icon.c b/src/st/st-icon.c
index 9cf2993..7235dc1 100644
--- a/src/st/st-icon.c
+++ b/src/st/st-icon.c
@@ -340,12 +340,11 @@ st_icon_init (StIcon *self)
 {
   self->priv = ST_ICON_GET_PRIVATE (self);
 
-  self->priv->gicon = NULL;
   self->priv->icon_size = DEFAULT_ICON_SIZE;
   self->priv->prop_icon_size = -1;
   self->priv->icon_type = DEFAULT_ICON_TYPE;
 
-  self->priv->icon_texture = COGL_INVALID_HANDLE;
+  self->priv->shadow_material = COGL_INVALID_HANDLE;
   self->priv->shadow_width = -1;
   self->priv->shadow_height = -1;
 }



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