summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rwxr-xr-xatk/atkmisc.c6
2 files changed, 9 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index da3fe0e..3dd5a7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-01-19 Li Yuan <li.yuan@sun.com>
+
+ * atk/atkmisc.c:
+ (atk_misc_threads_enter), (atk_misc_threads_leave):
+ Bug #329454. Use ATK_MISC_GET_CLASS to get AtkMiscClass
+ to use the overloaded functions.
+
2007-01-13 Hans Breuer <hans@breuer.org>
* atk/makefile.msc : adapt lib name to "auto-standard", add atkmisc
diff --git a/atk/atkmisc.c b/atk/atkmisc.c
index 75af04f..4dac155 100755
--- a/atk/atkmisc.c
+++ b/atk/atkmisc.c
@@ -67,12 +67,11 @@ atk_misc_class_init (AtkMiscClass *klass)
void
atk_misc_threads_enter (AtkMisc *misc)
{
- AtkMiscClass *klass = g_type_class_ref (ATK_TYPE_MISC);
+ AtkMiscClass *klass = ATK_MISC_GET_CLASS (misc);
if (klass->threads_enter)
{
klass->threads_enter (misc);
}
- g_type_class_unref (klass);
}
/**
@@ -95,12 +94,11 @@ atk_misc_threads_enter (AtkMisc *misc)
void
atk_misc_threads_leave (AtkMisc *misc)
{
- AtkMiscClass *klass = g_type_class_ref (ATK_TYPE_MISC);
+ AtkMiscClass *klass = ATK_MISC_GET_CLASS (misc);
if (klass->threads_leave)
{
klass->threads_leave (misc);
}
- g_type_class_unref (klass);
}
AtkMisc *atk_misc_instance = NULL;