I try to create a GArray but I have always the same error :
const GLib = imports.gi.GLib;
var garray = new GLib.Array(true, true, 1); // Unable to construct boxed type Array since it has no zero-args , can only wrap an existing one
var garray = new GLib.Array(); // Unable to construct boxed type Array since it has no zero-args , can only wrap an existing one
I need a GArray to use it in the GnomeKeyring.item_create_sync method :
GnomeKeyring.item_create_sync( "login", 4, "name", new GLib.Array(true, true, 1) "pass", true);
I tried other type of array instead of GArray, here are the errors
[]
-> Object 0xb5d120d0 is not a subclass of (null), it's a Arraynew Array()
-> Object 0xb5e12138 is not a subclass of (null), it's a Array{}
-> Object 0xb5d0b1b0 is not a subclass of (null), it's a Object5
-> Unhandled GType GArray unpacking GArgument from Number"5"
-> Expected type interface for Argument 'attributes' but got type 'string'
If anyone has a solution for GArray
or for GnomeKeyring.item_create_sync