Trouble finding GIR constructor for Soup.Cookie



Hi Guys

I'm new to Gnome development, looking to create a Gnome Shell
extension for google reader using JavaScript.

However, I'm getting problems trying to figure out the constructor for
the Soup.Cookie object. I've tried:

let cookie = Soup.Cookie.new("SID", "", ".google.com", "/", -1);
let cookie = Soup.Cookie.c_new("SID", "", ".google.com", "/", -1);
let cookie = new Soup.Cookie("SID", "", ".google.com", "/", -1);
let cookie = new Soup.Cookie();

But no combination seems to work. Been using this site to give some
indicators as to what to use:

http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Soup.Cookie.html

But I'm uncertain if these docs are correct.

Please advise. TIA...

--
Ricardo Gladwell <ricardo gladwell gmail com>
http://www.google.com/profiles/ricardo.gladwell
Twitter: @rgladwell - MSN: axonrg gmail com


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