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
This commit is contained in:
parent
2332e2b0c5
commit
a2528a7a98
@ -340,12 +340,11 @@ st_icon_init (StIcon *self)
|
|||||||
{
|
{
|
||||||
self->priv = ST_ICON_GET_PRIVATE (self);
|
self->priv = ST_ICON_GET_PRIVATE (self);
|
||||||
|
|
||||||
self->priv->gicon = NULL;
|
|
||||||
self->priv->icon_size = DEFAULT_ICON_SIZE;
|
self->priv->icon_size = DEFAULT_ICON_SIZE;
|
||||||
self->priv->prop_icon_size = -1;
|
self->priv->prop_icon_size = -1;
|
||||||
self->priv->icon_type = DEFAULT_ICON_TYPE;
|
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_width = -1;
|
||||||
self->priv->shadow_height = -1;
|
self->priv->shadow_height = -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user