/** * as_icon_new: * * Creates a new #AsIcon. * * Returns: (transfer full): a #AsIcon * * Since: 0.3.1 **/ AsIcon * as_icon_new (void) { AsIcon *icon; icon = g_object_new (AS_TYPE_ICON, NULL); return AS_ICON (icon); }
/** * as_icon_finalize: **/ static void as_icon_finalize (GObject *object) { AsIcon *icon = AS_ICON (object); AsIconPrivate *priv = GET_PRIVATE (icon); if (priv->pixbuf != NULL) g_object_unref (priv->pixbuf); if (priv->data != NULL) g_bytes_unref (priv->data); g_free (priv->name); g_free (priv->prefix); g_free (priv->prefix_private); G_OBJECT_CLASS (as_icon_parent_class)->finalize (object); }