Re: Trouble finding GIR constructor for Soup.Cookie
- From: "Jasper St. Pierre" <jstpierre mecheye net>
- To: 俞颐超 <yyc1992 gmail com>
- Cc: gnome-shell-list gnome org
- Subject: Re: Trouble finding GIR constructor for Soup.Cookie
- Date: Sat, 23 Jul 2011 16:00:47 -0400
On Sat, Jul 23, 2011 at 3:54 PM, 俞颐超
<yyc1992 gmail com> wrote:
On Sat, Jul 23, 2011 at 3:06 PM, Jasper St. Pierre
<jstpierre mecheye net> 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?
Indeed I am. It doesn't work in 3.0, but it works in gjs/introspection/libsoup from git.
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?
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>
--
Jasper
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-shell-list
--
Jasper
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]