libbonobo r3487 - in trunk: . bonobo



Author: tobiasmue
Date: Mon Aug 11 15:37:12 2008
New Revision: 3487
URL: http://svn.gnome.org/viewvc/libbonobo?rev=3487&view=rev

Log:
2008-08-11  Tobias Mueller  <tobiasmue svn gnome org>

    * bonobo/bonobo-object.c (bonobo_object_class_init):
    Checks for bonobo being initialized in
    bonobo_object_class_init, else notify the user.
    Fixes bug 543735.



Modified:
   trunk/ChangeLog
   trunk/bonobo/bonobo-object.c

Modified: trunk/bonobo/bonobo-object.c
==============================================================================
--- trunk/bonobo/bonobo-object.c	(original)
+++ trunk/bonobo/bonobo-object.c	Mon Aug 11 15:37:12 2008
@@ -893,6 +893,9 @@
 	g_assert (sizeof (POA_Bonobo_Unknown) == sizeof (gpointer) * 2);
 	g_assert (sizeof (BonoboObjectHeader) * 2 == sizeof (BonoboObject));
 
+	if (G_UNLIKELY (!bonobo_is_initialized()) )
+		g_error ("Bonobo must be initialized before use");
+	
 	bonobo_object_parent_class = g_type_class_peek_parent (klass);
 
 	object_class->set_property = bonobo_object_set_property;



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