seed r358 - trunk/libseed



Author: racarr
Date: Fri Nov 28 04:34:12 2008
New Revision: 358
URL: http://svn.gnome.org/viewvc/seed?rev=358&view=rev

Log:
Put "not methods" on constructor instead of putting just constructor methods or all methods. Gives us methods like GConf.Client.get_default


Modified:
   trunk/libseed/seed-engine.c

Modified: trunk/libseed/seed-engine.c
==============================================================================
--- trunk/libseed/seed-engine.c	(original)
+++ trunk/libseed/seed-engine.c	Fri Nov 28 04:34:12 2008
@@ -966,15 +966,15 @@
 				{
 					finfo = g_object_info_get_method((GIObjectInfo *) info, i);
 					flags = g_function_info_get_flags(finfo);
-//					if (flags & GI_FUNCTION_IS_CONSTRUCTOR)
-//					{
+					if (!(flags & GI_FUNCTION_IS_METHOD))
+					{
 						seed_gobject_define_property_from_function_info
 							(ctx, finfo, constructor_ref, FALSE);
-//					}
-//					else
-//					{
-//						g_base_info_unref((GIBaseInfo *) finfo);
-//					}
+					}
+					else
+					{
+						g_base_info_unref((GIBaseInfo *) finfo);
+					}
 				}
 
 				seed_object_set_property(ctx, namespace_ref,



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