diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2010-09-07 17:48:57 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2010-09-07 17:58:09 -0400 |
commit | 5abb2a9159142fe95ecbc989836ff45c2be4f0bf (patch) | |
tree | 469eedbaaf8d7ee4bbd07430676d428a3933babc | |
parent | 1959ac00cb9ffe9dad514ba1bb4d0300c1fcdb49 (diff) | |
download | gjs-5abb2a9159142fe95ecbc989836ff45c2be4f0bf.tar.gz |
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
-rw-r--r-- | gi/function.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gi/function.c b/gi/function.c index 7554a927..846cd4fa 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) { |