* (This method is implemented by the toolkit ATK implementation layer;
* for instance, for GTK+, GAIL implements this via GDK_THREADS_ENTER).
*
- * Since: ATK 1.13
+ * Since: 1.13
*
**/
void
atk_misc_threads_enter (AtkMisc *misc)
{
- AtkMiscClass *klass = g_type_class_ref (ATK_TYPE_MISC);
+ AtkMiscClass *klass;
+
+ if (misc == NULL)
+ return;
+
+ klass = ATK_MISC_GET_CLASS (misc);
+
if (klass->threads_enter)
{
klass->threads_enter (misc);
}
- g_type_class_unref (klass);
}
/**
* (This method is implemented by the toolkit ATK implementation layer;
* for instance, for GTK+, GAIL implements this via GDK_THREADS_LEAVE).
*
- * Since: ATK 1.13
+ * Since: 1.13
*
**/
void
atk_misc_threads_leave (AtkMisc *misc)
{
- AtkMiscClass *klass = g_type_class_ref (ATK_TYPE_MISC);
+ AtkMiscClass *klass;
+
+ if (misc == NULL)
+ return;
+
+ klass = ATK_MISC_GET_CLASS (misc);
+
if (klass->threads_leave)
{
klass->threads_leave (misc);
}
- g_type_class_unref (klass);
}
AtkMisc *atk_misc_instance = NULL;
*
* Obtain the singleton instance of AtkMisc for this application.
*
- * Since: ATK 1.13
+ * Since: 1.13
*
* Returns: The singleton instance of AtkMisc for this application.
*