[gjs] interface: Fix build



commit 5d19ca950f23af26506f5fc4d48cc5dd1da7c03b
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Jan 3 16:07:05 2012 -0500

    interface: Fix build
    
    I had a future patch changing gjs_define_function to include
    a GType argument. Unfortunately, I forgot to remove it when
    rebasing for master.

 gi/interface.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gi/interface.c b/gi/interface.c
index 983f639..87ad7b2 100644
--- a/gi/interface.c
+++ b/gi/interface.c
@@ -105,7 +105,7 @@ gjs_define_static_methods(JSContext       *context,
          * like in the near future.
          */
         if (!(flags & GI_FUNCTION_IS_METHOD)) {
-            gjs_define_function(context, constructor, gtype,
+            gjs_define_function(context, constructor,
                                 (GICallableInfo *)meth_info);
         }
 
@@ -140,7 +140,6 @@ interface_new_resolve(JSContext *context,
 
     if (method_info != NULL) {
         if (gjs_define_function(context, obj,
-                                g_registered_type_info_get_g_type(priv->info),
                                 (GICallableInfo*)method_info) == NULL) {
             g_base_info_unref((GIBaseInfo*)method_info);
             goto out;



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