[Vala] regarding Gtk Builder on Vala
Hello everyone, I've suffered a deep disappointment from Vala, and I'm hoping it is something I failed to do rightly. I have an app with a Gtk 3 interface loaded from a gtk builder, but I get a seg fault on run time. The thing is the same code (and builder xml) (written in Python 2) works smoothly. Is there something I specifically need to do in Vala to load gtk3 interfaces from builder files?? Best regards, -- Sw.E. D.H. Bahr Nova Desktop Development Leader CESOL (Free/Libre Software Centre) UCI (University of Informatics Sciences) Havana, Cuba 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS... CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION http://www.uci.cu http://www.facebook.com/universidad.uci http://www.flickr.com/photos/universidad_uci ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] regarding Gtk Builder on Vala
On 27 April 2012 14:02, D.H. Bahr wrote: > Hello everyone, > > I've suffered a deep disappointment from Vala, and I'm hoping it is > something I failed to do rightly. > > I have an app with a Gtk 3 interface loaded from a gtk builder, but I > get a seg fault on run time. The thing is the same code (and builder > xml) (written in Python 2) works smoothly. > > Is there something I specifically need to do in Vala to load gtk3 > interfaces from builder files?? > Hi sorry to hear that, can you please attach or point us at the code you are trying to use? -- Andrew Higginson ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] regarding Gtk Builder on Vala
On the .tar.xz is the code I referred to. I compile it with dbahr@compaq:nova-developer-center $ valac src/ndc.vala src/model/ndc_core.vala src/model/src_pkg_manager.vala src/gui/ndc_application.vala --pkg gtk+-3.0 --pkg gee-1.0 may be it is something i'm doing wrong on compiling?? Best regards, El vie, 27-04-2012 a las 16:26 +0100, Andrew Higginson escribió: > > On 27 April 2012 14:02, D.H. Bahr wrote: > Hello everyone, > > I've suffered a deep disappointment from Vala, and I'm hoping > it is > something I failed to do rightly. > > I have an app with a Gtk 3 interface loaded from a gtk > builder, but I > get a seg fault on run time. The thing is the same code (and > builder > xml) (written in Python 2) works smoothly. > > Is there something I specifically need to do in Vala to load > gtk3 > interfaces from builder files?? > > > Hi sorry to hear that, can you please attach or point us at the code > you are trying to use? > > > -- > Andrew Higginson > > -- Sw.E. D.H. Bahr Nova Desktop Development Leader CESOL (Free/Libre Software Centre) UCI (University of Informatics Sciences) Havana, Cuba 10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS... CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION http://www.uci.cu http://www.facebook.com/universidad.uci http://www.flickr.com/photos/universidad_uci nova-developer-center.tar.xz Description: application/xz-compressed-tar ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list
Re: [Vala] regarding Gtk Builder on Vala
On 30 April 2012 14:00, D.H. Bahr wrote: > On the .tar.xz is the code I referred to. I compile it with > > dbahr@compaq:nova-developer-center $ valac src/ndc.vala > src/model/ndc_core.vala src/model/src_pkg_manager.vala > src/gui/ndc_application.vala --pkg gtk+-3.0 --pkg gee-1.0 > > may be it is something i'm doing wrong on compiling?? > It looks like the problem may be that you haven't called Gtk.init() at the start of your code. Add: Gtk.init(ref args) above: var app = new NDCApplication(); in ndc.vala and it should work -- Andrew Higginson ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list