diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-12 15:40:21 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-12 15:40:21 +0000 |
commit | b77c9cf2e8b3e631a09baf319117a8cf215bc0c2 (patch) | |
tree | bd08b1fd7a3c4befd82b3231223ff4944676bdd8 /bindings/java | |
parent | 7142d50d16981d69db575e30e7d9883896802294 (diff) | |
download | lasso-b77c9cf2e8b3e631a09baf319117a8cf215bc0c2.tar.gz lasso-b77c9cf2e8b3e631a09baf319117a8cf215bc0c2.tar.xz lasso-b77c9cf2e8b3e631a09baf319117a8cf215bc0c2.zip |
Bindings: add support for time_t to bindings, add support for 'string' type for list in java binding
Diffstat (limited to 'bindings/java')
-rw-r--r-- | bindings/java/lang.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/java/lang.py b/bindings/java/lang.py index 6b470699..7d413ab5 100644 --- a/bindings/java/lang.py +++ b/bindings/java/lang.py @@ -108,7 +108,7 @@ def is_collection(type): return type in ('const GList*','GList*','GHashTable*') def is_string_type(type): - return type in ['char*', 'const char*', 'gchar*', 'const gchar*'] + return type in ['string', 'char*', 'const char*', 'gchar*', 'const gchar*'] class Binding: def __init__(self, binding_data): @@ -538,7 +538,7 @@ protected static native void destroy(long cptr); print >> fd, ' if (%s)' % arg_name print >> fd, ' g_free(%s);' % arg_name elif arg_type == 'GList*' or arg_type == 'const GList*': - if arg_options.get('element-type') == 'char*': + if is_string_type(arg_options.get('element-type')): print >> fd, ' free_glist(&%s, (GFunc)free);' % arg_name elif is_object(element_type(arg)): print >> fd, ' free_glist(&%s, (GFunc)g_object_unref);' % arg_name |