[Vala] How to override a "class closure for a signal"?

2016-07-28 Thread Michael Gratton
Hey all, I have a subclass of Gtk.ListBox and I'm trying to override Gtk.Container::gtk_container_set_focus_child on it to prevent its default behaviour of automatically scrolling to the new focus child. The docs for that method say this: This function emits the GtkContainer::set_focus_chil

Re: [Vala] How to override a "class closure for a signal"?

2016-07-28 Thread Guillaume Poirier-Morency
When you override a virtual signal, you only override its default handler, so you don't specify 'signal' in the new method: public class MyListBox : Gtk.ListBox {     public override void set_focus_child (Widget? widget)     {         // override default handler here     } } Not sure here, but I

Re: [Vala] Just a news I've read about popularity langage

2016-07-28 Thread mar...@saepia.net
Hm I don't think it's really alligned with what I meant. For example that introduction https://github.com/eustasy/vala-lang.org/blob/master/vwiki/vala.wiki is not-marketing driven. And so on. None of these features give any profit to the developer alone. Even their combination. There's no singl

Re: [Vala] Just a news I've read about popularity langage

2016-07-28 Thread Ben Iofel
If you want to write it, make a pull request On Thu, Jul 28, 2016, 4:13 PM mar...@saepia.net wrote: > Hm I don't think it's really alligned with what I meant. > > For example that introduction > > https://github.com/eustasy/vala-lang.org/blob/master/vwiki/vala.wiki > > is not-marketing driven. A

Re: [Vala] Just a news I've read about popularity langage

2016-07-28 Thread mar...@saepia.net
I think we should reach consensus first about how vala should be advertised. BTW vala-lang.org domain seems to point to some random website, anyone knows is it intentional? :) m. 2016-07-28 22:33 GMT+02:00 Ben Iofel : > If you want to write it, make a pull request > > On Thu, Jul 28, 2016, 4:13

Re: [Vala] How to override a "class closure for a signal"?

2016-07-28 Thread Michael Gratton
Hi Guillaume, On Thu, Jul 28, 2016 at 9:02 PM, Guillaume Poirier-Morency wrote: When you override a virtual signal, you only override its default handler, so you don't specify 'signal' in the new method: Thanks for that, so it seems the first approach I suggested was the right one. I'll ke