[gjs] Handle arrays of filenames



commit 2eff1e7a6e3ac5a74e7a115e672065756507d37d
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sun May 6 13:55:04 2012 +0200

    Handle arrays of filenames
    
    Type tag FILENAME was not handled, causing a warning and failing.
    Instead, treat it like a generic pointer type.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=675561

 gi/arg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gi/arg.c b/gi/arg.c
index f6ef1ed..ca38262 100644
--- a/gi/arg.c
+++ b/gi/arg.c
@@ -920,6 +920,7 @@ gjs_array_to_array(JSContext   *context,
     case GI_TYPE_TAG_GLIST:
     case GI_TYPE_TAG_GSLIST:
     case GI_TYPE_TAG_GHASH:
+    case GI_TYPE_TAG_FILENAME:
         return gjs_array_to_ptrarray(context,
                                      array_value,
                                      length,



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