gtk-doc r690 - trunk



Author: herzi
Date: Mon Feb 23 16:20:28 2009
New Revision: 690
URL: http://svn.gnome.org/viewvc/gtk-doc?rev=690&view=rev

Log:
2009-02-23  Sven Herzberg  <herzi gnome-de org>

        Fixes 571820 - gobject.c: pspec_pool not initialized for interfaces

        Initialize GObjectClass before referencing interfaces.

        * gtkdoc-scangobj.in: keep a reference on the GObjectClass while
        peeking in interfaces' properties


Modified:
   trunk/ChangeLog
   trunk/gtkdoc-scangobj.in

Modified: trunk/gtkdoc-scangobj.in
==============================================================================
--- trunk/gtkdoc-scangobj.in	(original)
+++ trunk/gtkdoc-scangobj.in	Mon Feb 23 16:20:28 2009
@@ -169,6 +169,10 @@
 print OUTPUT <<EOT;
     object_types[i] = 0;
 
+    /* reference the GObjectClass to initialize the param spec pool
+     * potentially needed by interfaces. See http://bugs.gnome.org/571820 */
+    gpointer g_object_class = g_type_class_ref (G_TYPE_OBJECT);
+
     /* Need to make sure all the types are loaded in and initialize
      * their signals and properties.
      */
@@ -180,6 +184,8 @@
           g_type_default_interface_ref (object_types[i]);
       }
 
+    g_type_class_unref (g_object_class);
+
     return object_types;
 }
 



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