Re: Trouble finding GIR constructor for Soup.Cookie
- From: 俞颐超 <yyc1992 gmail com>
- To: Ricardo Gladwell <ricardo gladwell gmail com>
- Cc: gnome-shell-list gnome org
- Subject: Re: Trouble finding GIR constructor for Soup.Cookie
- Date: Sat, 23 Jul 2011 15:51:23 -0400
On Sat, Jul 23, 2011 at 2:55 PM, Ricardo Gladwell
<ricardo gladwell 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 "default" members of a js object (i.e. prototype) and so I guess this is where they place static functions~~~
don't think gir is complete because I have to make a lot of this kind of guess these days~~~~, which is annoy. both in js and python~~~
Yichao
On 07/23/2011 03:31 PM, 俞颐超 wrote:
know nothing about soup but this seems work
Soup.Cookie.prototype.new('SID', '', '.google.com <http://google.com>',
'/', -1)
On Sat, Jul 23, 2011 at 8:39 AM, Ricardo Gladwell
<mailto:ricardo.gladwell@gmail.com>>
Twitter: @rgladwell - MSN: axonrg gmail com <mailto:axonrg gmail com>
<mailto:
ricardo.gladwell@gmail.com>> wrote:
> 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.Message.new('GET',
> "
https://www.google.com/accounts/ClientLogin?service=reader");
>
> I make the following declaration earlier:
>
> const Soup = imports.gi.Soup;
>
> Regards...
>
> --
> Ricardo Gladwell <
ricardo gladwell gmail com
<mailto:ricardo.gladwell@gmail.com>>
> Twitter: @rgladwell - MSN: axonrg gmail com <mailto:axonrg gmail com>
>
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list gnome org <mailto:gnome-shell-list@gnome.org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]