Lines Matching refs:a_this
32 #define PRIVATE(a_this) ((a_this)->priv)
99 *@a_this: the current instance of #CRCascade.
114 cr_cascade_get_sheet (CRCascade * a_this, enum CRStyleOrigin a_origin)
116 g_return_val_if_fail (a_this
119 return PRIVATE (a_this)->sheets[a_origin];
124 *@a_this: the current instance of #CRCascade.
134 cr_cascade_set_sheet (CRCascade * a_this,
137 g_return_val_if_fail (a_this
141 if (PRIVATE (a_this)->sheets[a_origin])
142 cr_stylesheet_unref (PRIVATE (a_this)->sheets[a_origin]);
143 PRIVATE (a_this)->sheets[a_origin] = a_sheet;
151 *@a_this: the current instance of #CRCascade
157 cr_cascade_ref (CRCascade * a_this)
159 g_return_if_fail (a_this && PRIVATE (a_this));
161 PRIVATE (a_this)->ref_count++;
166 *@a_this: the current instance of
175 cr_cascade_unref (CRCascade * a_this)
177 g_return_if_fail (a_this && PRIVATE (a_this));
179 if (PRIVATE (a_this)->ref_count)
180 PRIVATE (a_this)->ref_count--;
181 if (!PRIVATE (a_this)->ref_count) {
182 cr_cascade_destroy (a_this);
188 * @a_this: the current instance of #CRCascade
193 cr_cascade_destroy (CRCascade * a_this)
195 g_return_if_fail (a_this);
197 if (PRIVATE (a_this)) {
200 for (i = 0; PRIVATE (a_this)->sheets && i < NB_ORIGINS; i++) {
201 if (PRIVATE (a_this)->sheets[i]) {
203 (PRIVATE (a_this)->sheets[i])
205 PRIVATE (a_this)->sheets[i] = NULL;
209 g_free (PRIVATE (a_this));
210 PRIVATE (a_this) = NULL;
212 g_free (a_this);