Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-24 Thread Ricardo Gladwell
On 07/23/2011 11:44 PM, 俞颐超 wrote: I think(hope) thing will be better (and more stable) after gnome 3.2 is released in Sep. Thanks for the feedback, I look forward to 3.2 and nice work on the Gnome Shell so far guys, really loving it. Regards... -- Ricardo Gladwell http://www.google.com/pr

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-24 Thread Giovanni Campagna
Il giorno sab, 23/07/2011 alle 16.21 -0400, Jasper St. Pierre ha scritto: > > > 2011/7/23 Ricardo Gladwell > The following is also crashing my Gnome Shell session despite > being > surrounded by a try...catch block: > >let cookieJar = new Soup

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-23 Thread 俞颐超
a similar problem is new GTop.glibtop_cpu() doesn't work but GTop.glibtop_mem() works well. gjs> new imports.gi.GTop.glibtop_cpu() Error: Unable to construct boxed type glibtop_cpu since it has no zero-args , can only wrap an existing one gjs> new imports.gi.GTop.glibtop_mem() [object _private_GT

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-23 Thread Ricardo Gladwell
Hi Jasper Thanks for the feedback, I guess I'll have hold off on development of my Gnome Shell extension until these issues are resolved and updates pushed to an F15 repo. Any ideas when this might be? Kind regards... -- Ricardo Gladwell http://www.google.com/profiles/ricardo.gladwell Twitt

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-23 Thread Jasper St. Pierre
2011/7/23 Ricardo Gladwell > The following is also crashing my Gnome Shell session despite being > surrounded by a try...catch block: > >let cookieJar = new Soup.CookieJar(); >let cookie = Soup.Cookie.prototype.new('SID', this.sid, > '.google.com', '/', -1); >c

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-23 Thread Ricardo Gladwell
The following is also crashing my Gnome Shell session despite being surrounded by a try...catch block: let cookieJar = new Soup.CookieJar(); let cookie = Soup.Cookie.prototype.new('SID', this.sid, '.google.com', '/', -1); cookieJar.add_cookie(cookie);

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-23 Thread Jasper St. Pierre
On Sat, Jul 23, 2011 at 3:51 PM, 俞颐超 wrote: > > > On Sat, Jul 23, 2011 at 2:55 PM, Ricardo Gladwell < > ricardo.gladw...@gmail.com> wrote: > >> Hi >> >> Thanks for the tip, that seemed to eliminate the problem. >> >> Is *.prototype a common feature of most GIR objects? What does it mean? > > > >

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-23 Thread Jasper St. Pierre
On Sat, Jul 23, 2011 at 3:54 PM, 俞颐超 wrote: > > > On Sat, Jul 23, 2011 at 3:06 PM, Jasper St. Pierre > wrote: > >> Why is "Soup.Cookie.new" failing for you? It works for me. > > > > imports.gi.Soup.Cookie.new > typein:4: strict warning: reference to undefined property > imports.gi.Soup.Cookie.ne

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-23 Thread 俞颐超
On Sat, Jul 23, 2011 at 3:06 PM, Jasper St. Pierre wrote: > Why is "Soup.Cookie.new" failing for you? It works for me. imports.gi.Soup.Cookie.new typein:4: strict warning: reference to undefined property imports.gi.Soup.Cookie.new this is what I get r u sure u r in gjs not python? > > > On

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-23 Thread 俞颐超
On Sat, Jul 23, 2011 at 2:55 PM, Ricardo Gladwell < ricardo.gladw...@gmail.com> wrote: > Hi > > Thanks for the tip, that seemed to eliminate the problem. > > Is *.prototype a common feature of most GIR objects? What does it mean? .prototype is just common js stuff, this is where you place the "

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-23 Thread Jasper St. Pierre
Why is "Soup.Cookie.new" failing for you? It works for me. On Sat, Jul 23, 2011 at 2:55 PM, Ricardo Gladwell < ricardo.gladw...@gmail.com> wrote: > Hi > > Thanks for the tip, that seemed to eliminate the problem. > > Is *.prototype a common feature of most GIR objects? What does it mean? > > > TI

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-23 Thread Ricardo Gladwell
Hi Thanks for the tip, that seemed to eliminate the problem. Is *.prototype a common feature of most GIR objects? What does it mean? TIA... -- Ricardo Gladwell http://www.google.com/profiles/ricardo.gladwell Twitter: @rgladwell - MSN: axo...@gmail.com On 07/23/2011 03:31 PM, 俞颐超 wrote: know

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-23 Thread 俞颐超
know nothing about soup but this seems work Soup.Cookie.prototype.new('SID', '', '.google.com', '/', -1) On Sat, Jul 23, 2011 at 8:39 AM, Ricardo Gladwell < ricardo.gladw...@gmail.com> wrote: > Hi Guys > > Sorry to bump, but can anyone help with this? Or should I raise a big? > > TIA... > > -- >

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-23 Thread Ricardo Gladwell
Hi Guys Sorry to bump, but can anyone help with this? Or should I raise a big? TIA... -- Ricardo Gladwell http://www.google.com/profiles/ricardo.gladwell Twitter: @rgladwell - MSN: axo...@gmail.com On 17 July 2011 12:51, Ricardo Gladwell wrote: > Hi Florian, > > Thanks for the feedback. > > O

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-17 Thread Ricardo Gladwell
Hi Florian, Thanks for the feedback. On 07/17/2011 12:47 PM, Florian Max wrote: Maybe you forgot to import the soup namespace? I can successfully call and use other Soup objects, for example the following executes successfully without error in the same source file: let message = Soup.Messa

Re: Trouble finding GIR constructor for Soup.Cookie

2011-07-17 Thread Florian Max
2011/7/17 Ricardo Gladwell > 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 So

Trouble finding GIR constructor for Soup.Cookie

2011-07-17 Thread Ricardo Gladwell
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 cook