[gjs] Adjust to change in the indexing of destroy/closure parameters
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs] Adjust to change in the indexing of destroy/closure parameters
- Date: Tue, 7 Sep 2010 21:58:26 +0000 (UTC)
commit 5abb2a9159142fe95ecbc989836ff45c2be4f0bf
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Tue Sep 7 17:48:57 2010 -0400
Adjust to change in the indexing of destroy/closure parameters
gobject-introspection has been changed so that g_arg_info_get_closure()
and g_arg_info_get_destroy() now count from the first parameter for
both functions and methods; the indexes never include 'self'.
https://bugzilla.gnome.org/show_bug.cgi?id=628999
gi/function.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gi/function.c b/gi/function.c
index 7554a92..846cd4f 100644
--- a/gi/function.c
+++ b/gi/function.c
@@ -924,11 +924,7 @@ init_cached_function_data (JSContext *context,
g_base_info_unref(interface_info);
}
destroy = g_arg_info_get_destroy(&arg_info);
- if (is_method)
- --destroy;
closure = g_arg_info_get_closure(&arg_info);
- if (is_method)
- --closure;
direction = g_arg_info_get_direction(&arg_info);
if (destroy > 0 && destroy < n_args) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]