Bug 557623 - Constructors shouldn't be flagged as methods.
authorLucas Rocha <lucasr@gnome.org>
Fri, 24 Oct 2008 09:54:34 +0000 (09:54 +0000)
committerLucas Almeida Rocha <lucasr@src.gnome.org>
Fri, 24 Oct 2008 09:54:34 +0000 (09:54 +0000)
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.

svn path=/trunk/; revision=805

ChangeLog
girepository/ginfo.c

index ee359c2..a5f822c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
 2008-10-24  Johan Dahlin  <johan@gnome.org>
 
        * giscanner/scannerparser.y:
index b2a7431..0ad4759 100644 (file)
@@ -477,7 +477,8 @@ g_function_info_get_flags (GIFunctionInfo *info)
   
   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)