Lines Matching refs:a_this
33 #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
120 return PRIVATE (a_this)->sheets[a_origin];
125 *@a_this: the current instance of #CRCascade.
135 cr_cascade_set_sheet (CRCascade * a_this,
138 g_return_val_if_fail (a_this
143 if (PRIVATE (a_this)->sheets[a_origin])
144 cr_stylesheet_unref (PRIVATE (a_this)->sheets[a_origin]);
145 PRIVATE (a_this)->sheets[a_origin] = a_sheet;
153 *@a_this: the current instance of #CRCascade
159 cr_cascade_ref (CRCascade * a_this)
161 g_return_if_fail (a_this && PRIVATE (a_this));
163 PRIVATE (a_this)->ref_count++;
168 *@a_this: the current instance of
177 cr_cascade_unref (CRCascade * a_this)
179 g_return_if_fail (a_this && PRIVATE (a_this));
181 if (PRIVATE (a_this)->ref_count)
182 PRIVATE (a_this)->ref_count--;
183 if (!PRIVATE (a_this)->ref_count) {
184 cr_cascade_destroy (a_this);
190 * @a_this: the current instance of #CRCascade
195 cr_cascade_destroy (CRCascade * a_this)
197 g_return_if_fail (a_this);
199 if (PRIVATE (a_this)) {
202 for (i = 0; PRIVATE (a_this)->sheets && i < NB_ORIGINS; i++) {
203 if (PRIVATE (a_this)->sheets[i]) {
205 (PRIVATE (a_this)->sheets[i])
207 PRIVATE (a_this)->sheets[i] = NULL;
211 g_free (PRIVATE (a_this));
212 PRIVATE (a_this) = NULL;
214 g_free (a_this);