Palete/Gtk.js
authorAlan Knowles <alan@roojs.com>
Tue, 10 Jun 2014 11:57:17 +0000 (19:57 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 10 Jun 2014 11:57:17 +0000 (19:57 +0800)
Palete/Gtk.js

index 30d3cac..70f65eb 100644 (file)
@@ -288,9 +288,7 @@ Gtk = XObject.define(
                 print(ename +": ADD method: " + n_original );
                 var flags = GIRepository.property_info_get_flags(prop);
                 
-                print( flags);
-                print( GIRepository.FunctionInfoFlags.IS_CONSTRUCTOR );
-                if (flags & GIRepository.FunctionInfoFlags.IS_CONSTRUCTOR) {
+                if (n_original.match(/^new/)) {
                     var add = {
                         name :  n_original.replace(/\-/g, '_'),
                         type : 'ctor', //???