gobject-introspection r805 - in trunk: . girepository



Author: lucasr
Date: Fri Oct 24 09:54:34 2008
New Revision: 805
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=805&view=rev

Log:
2008-10-24  Lucas Rocha  <lucasr gnome org>

	Bug 557623 - Constructors shouldn't be flagged as methods.

	* girepository/ginfo.c (g_function_info_get_flags): ditto.


Modified:
   trunk/ChangeLog
   trunk/girepository/ginfo.c

Modified: trunk/girepository/ginfo.c
==============================================================================
--- trunk/girepository/ginfo.c	(original)
+++ trunk/girepository/ginfo.c	Fri Oct 24 09:54:34 2008
@@ -477,7 +477,8 @@
   
   flags = 0;
 
-  if (base->container != NULL)
+  /* Make sure we don't flag Constructors as methods */
+  if (base->container != NULL && !blob->constructor)
     flags = flags | GI_FUNCTION_IS_METHOD;
     
   if (blob->constructor)



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