Re: Re: Error on webkit



Yes, looks like the  gir you have is not getting loaded or is broken - See if one of these help.

introspecton 1.1 gir's are here
http://git.roojs.org/?p=gir-1.1;a=blob;f=WebKit-1.0.gir

introspecton 1.0 gir's
http://www.roojs.com/seed/WebKit-1.0.gir

compile with
g-ir-compile WebKit-1.0.gir -o /usr/lib/girepository-1.0/WebKit-1.0.typelib

Regards
Alan


 --- On 20/Sep/2010, Jonh Wendell wrote: 
> Em Seg, 2010-09-20 às 13:31 +0800, Alan Knowles escreveu:
> > You could try
> > 
> > let view = new WebKit.WebView({});
> > 
> > I'm not sure about the error though, WebView should not really be a 'boxed' type.. 
> > 
> > If you can get the seed Browser working then your GIR/typelibs should be fine.
> > http://git.gnome.org/browse/seed-examples/tree/browser
> > 
> > Regards
> > Alan
> 
> Hi, Alan.
> 
> I forgot to mention, I've also tried seed:
> var view = new WebKit.WebView ({});
> print (view);
> [object seed_struct]
> view.open ("http://www.google.com/";);
> TypeError Result of expression 'view.open' [undefined] is not a
> function.
> 
> I think there's something wrong here, because, If I create, say, a
> Window, I get:
> 
> var win = new Gtk.Window({title: 'SFD Browser'});
> print (win);
> [object GtkWindow]
> 
> So, I should get an [object WebView], right?
> 
> Thanks,
> -- 
> Jonh Wendell
> http://www.bani.com.br



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]