glibmm r658 - in trunk: . glib/glibmm



Author: jjongsma
Date: Thu Apr 24 15:53:38 2008
New Revision: 658
URL: http://svn.gnome.org/viewvc/glibmm?rev=658&view=rev

Log:
* glib/glibmm/wrap.cc: Improve the error message when failing to wrap a
particular type of object to give a hint about initializing the library
since we get so many questions about this (bug #529648)


Modified:
   trunk/ChangeLog
   trunk/glib/glibmm/wrap.cc

Modified: trunk/glib/glibmm/wrap.cc
==============================================================================
--- trunk/glib/glibmm/wrap.cc	(original)
+++ trunk/glib/glibmm/wrap.cc	Thu Apr 24 15:53:38 2008
@@ -187,7 +187,7 @@
 
     if(!pCppObject)
     {
-      g_warning("failed to wrap type of '%s'", G_OBJECT_TYPE_NAME(object));
+      g_warning("Failed to wrap object of type '%s'. Hint: this error is commonly caused by failing to call a library init() function.", G_OBJECT_TYPE_NAME(object));
       return 0;
     }
   }



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