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

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

[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