[pygobject] no need to offset arg positions when is_method is true
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] no need to offset arg positions when is_method is true
- Date: Wed, 8 Sep 2010 17:09:24 +0000 (UTC)
commit f92fc48e7e2ec50996e994ccb7d08a61e7374f22
Author: John (J5) Palmieri <johnp redhat com>
Date: Wed Sep 8 12:35:09 2010 -0400
no need to offset arg positions when is_method is true
* The old GI libraries required we offset arg positions for the missing
self argument. The new library fixes this so we don't have to offset
anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=629087
gi/pygi-callbacks.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gi/pygi-callbacks.c b/gi/pygi-callbacks.c
index c57ea22..bae4001 100644
--- a/gi/pygi-callbacks.c
+++ b/gi/pygi-callbacks.c
@@ -109,11 +109,8 @@ _pygi_scan_for_callbacks (GIFunctionInfo *function_info,
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]