[gobject-introspection] girffi: Fix g_function_info_new_for_address to respect G_VFUNC_THROWS



commit ff9651a6de7b7c356477f11472b94d7bec05ea2c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Feb 3 13:47:17 2012 -0500

    girffi: Fix g_function_info_new_for_address to respect G_VFUNC_THROWS

 girepository/girffi.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/girepository/girffi.c b/girepository/girffi.c
index e727bea..d4c728a 100644
--- a/girepository/girffi.c
+++ b/girepository/girffi.c
@@ -301,8 +301,15 @@ g_function_invoker_new_for_address (gpointer           addr,
         throws = (flags & GI_FUNCTION_THROWS) != 0;
       }
       break;
-    case GI_INFO_TYPE_CALLBACK:
     case GI_INFO_TYPE_VFUNC:
+      {
+        GIVFuncInfoFlags flags;
+        flags = g_vfunc_info_get_flags ((GIVFuncInfo *)info);
+        throws = (flags & GI_VFUNC_THROWS) != 0;
+      }
+      is_method = FALSE;
+      break;
+    case GI_INFO_TYPE_CALLBACK:
       is_method = TRUE;
       throws = FALSE;
       break;



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