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
<constructor>, can only wrap an existing one

gjs> new imports.gi.GTop.glibtop_mem()
[object _private_GTop_glibtop_mem]

and this made us have to read directly from procfs instead of using glibtop
in system-monitor-applet (extension)

have any idea about this?

On Sat, Jul 23, 2011 at 5:06 PM, Ricardo Gladwell <
ricardo.gladw...@gmail.com> wrote:

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

I think(hope) thing will be better (and more stable) after gnome 3.2 is
released in Sep.


>
> Kind regards...
>
> --
> 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 09:21 PM, Jasper St. Pierre wrote:
>
>>
>>
>> 2011/7/23 Ricardo Gladwell <ricardo.gladw...@gmail.com
>> <mailto:ricardo.gladwell@**gmail.com <ricardo.gladw...@gmail.com>>>
>>
>>
>>    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 <http://google.com>', '/', -1);
>>
>>                cookieJar.add_cookie(cookie);
>>                session.add_feature(cookieJar)**;
>>
>>    Any ideas why?
>>
>>
>> If it's what I think it is, it's an unfortunate bug between
>> gobject-introspection, gjs and libsoup. See, the API defines a few
>> properties called 'add-feature' and 'add-feature-by-type', designed for
>> the C API:
>>
>>   g_object_new (SOUP_TYPE_SESSION,
>> "add-feature-by-type", SOUP_TYPE_PROXY_RESOLVER_**DEFAULT,
>>     NULL);
>>
>> But this is interfering with gobject-introspection, and gjs is thinking
>> it's the property it wants when you do "session.add_feature".
>> Unfortunately, they don't give it a proper getter, so we get stuck with
>> a warning, and maybe a crash. See BGO bug #655149 [0] and bug #655150
>> [1] for details. Unfortunately, this isn't fixed yet: gjs doesn't care
>> about the typelib when looking for properties, it just looks them up on
>> the typeinfo. I have a quick patch, but it's probably best if it goes
>> into the girepository API proper.
>>
>>    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>
>>
>>
>>
>> Jasper
>>
>> [0] 
>> https://bugzilla.gnome.org/**show_bug.cgi?id=655149<https://bugzilla.gnome.org/show_bug.cgi?id=655149>
>> [1] 
>> https://bugzilla.gnome.org/**show_bug.cgi?id=655150<https://bugzilla.gnome.org/show_bug.cgi?id=655150>
>>
>>  ______________________________**_________________
> 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

Reply via email to