On Sat, Jul 23, 2011 at 3:51 PM, 俞颐超 <yyc1...@gmail.com> 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?
>
>
>
> .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~~~
>

Not quite. gjs adds a custom wrapper function for use as a constructor, and
sets its prototype to the gi class it created. So 'imports.gi.Soup.Cookie'
is the wrapper function and 'imports.gi.Soup.Cookie.prototype' is the
internal prototype.


> 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~~~
>

It is a bit inconsistent, yes, and we should probably fix gjs/introspection
so that the wrapper function works with boxed types.


> Yichao
>
>>
>>
>> TIA...
>>
>> --
>> Ricardo Gladwell <ricardo.gladw...@gmail.com>
>> http://www.google.com/**profiles/ricardo.gladwell<http://www.google.com/profiles/ricardo.gladwell>
>> Twitter: @rgladwell - MSN: axo...@gmail.com
>>
>> 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
>>> <ricardo.gladw...@gmail.com 
>>> <mailto:ricardo.gladwell@**gmail.com<ricardo.gladw...@gmail.com>>>
>>> wrote:
>>>
>>>    Hi Guys
>>>
>>>    Sorry to bump, but can anyone help with this? Or should I raise a big?
>>>
>>>    TIA...
>>>
>>>    --
>>>    Ricardo Gladwell <ricardo.gladw...@gmail.com
>>>    <mailto:ricardo.gladwell@**gmail.com <ricardo.gladw...@gmail.com>>>
>>>
>>>    
>>> http://www.google.com/**profiles/ricardo.gladwell<http://www.google.com/profiles/ricardo.gladwell>
>>>    Twitter: @rgladwell - MSN: axo...@gmail.com <mailto:axo...@gmail.com>
>>>
>>>
>>>    On 17 July 2011 12:51, Ricardo Gladwell <ricardo.gladw...@gmail.com
>>>    <mailto:ricardo.gladwell@**gmail.com <ricardo.gladw...@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<https://www.google.com/accounts/ClientLogin?service=reader>
>>> ");
>>>     >
>>>     > I make the following declaration earlier:
>>>     >
>>>     > const Soup = imports.gi.Soup;
>>>     >
>>>     > Regards...
>>>     >
>>>     > --
>>>     > Ricardo Gladwell <ricardo.gladw...@gmail.com
>>>    <mailto:ricardo.gladwell@**gmail.com <ricardo.gladw...@gmail.com>>>
>>>
>>>     > 
>>> http://www.google.com/**profiles/ricardo.gladwell<http://www.google.com/profiles/ricardo.gladwell>
>>>     > Twitter: @rgladwell - MSN: axo...@gmail.com <mailto:
>>> axo...@gmail.com>
>>>
>>>     >
>>>    ______________________________**_________________
>>>    gnome-shell-list mailing list
>>>    gnome-shell-list@gnome.org 
>>> <mailto:gnome-shell-list@**gnome.org<gnome-shell-list@gnome.org>
>>> >
>>>
>>>    
>>> http://mail.gnome.org/mailman/**listinfo/gnome-shell-list<http://mail.gnome.org/mailman/listinfo/gnome-shell-list>
>>>
>>>
>>>  ______________________________**_________________
>> gnome-shell-list mailing list
>> gnome-shell-list@gnome.org
>> http://mail.gnome.org/mailman/**listinfo/gnome-shell-list<http://mail.gnome.org/mailman/listinfo/gnome-shell-list>
>>
>
>
> _______________________________________________
> gnome-shell-list mailing list
> gnome-shell-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gnome-shell-list
>
>


-- 
  Jasper
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-shell-list

Reply via email to