Re: [Vala] 0.7 signal syntax



I try replacing the line
       drawing_area.expose_event += this.on_expose;
with
       drawing_area.expose_event.connect(this.on_expose);

but this gives an error... could anyone enlighten me on what is the
correct syntax?

That is the correct syntax.
What is the error you're getting?
I suspect it wants the first argument of on_expose() to be a Gtk.Widget.

-- 
http://homes.eff.org/~barlow/EconomyOfIdeas.html
http://www.dreamsongs.com/MobSoftware.html
http://www.gnu.org/philosophy/shouldbefree.html



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