[gtk+] This is more horrible than I had realized



commit 182b6f7a3c80a21cc7a8144dbc18b29ba622cc5f
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jul 8 23:20:06 2011 -0400

    This is more horrible than I had realized
    
    Due to tragic misunderstandings at the birth of ATK, AtkUtil
    can't actually be properly derived. Instead, each implementation
    has to poke its vfuncs directly into the AtkUtilClass struct.
    
    So painful to have shipped this stuff for 10 years...

 gtk/a11y/gailutil.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/a11y/gailutil.c b/gtk/a11y/gailutil.c
index c84a80b..e19ba82 100644
--- a/gtk/a11y/gailutil.c
+++ b/gtk/a11y/gailutil.c
@@ -514,7 +514,11 @@ configure_event_watcher (GSignalInvocationHint *hint,
 static void
 gail_util_class_init (GailUtilClass *klass)
 {
-  AtkUtilClass *atk_class = ATK_UTIL_CLASS (klass);
+  AtkUtilClass *atk_class;
+  gpointer data;
+
+  data = g_type_class_peek (ATK_TYPE_UTIL);
+  atk_class = ATK_UTIL_CLASS (data);
 
   atk_class->add_global_event_listener = gail_util_add_global_event_listener;
   atk_class->remove_global_event_listener = gail_util_remove_global_event_listener;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]