I want to have several buttons connected to the same action, to have something similar to a calculator or a keyboard; instead of programming an action for each button, I want them all to do the same thing. But, is there any way to know which button I’m calling that action from? I’m working with Vala.
Sorry for my English and thank you very much in advance.
Why do you need a way to know which button you’re calling the action from? Actions are, by design, separated from the UI. If you want a reference to the button, you can use the Gtk.Button::clicked signal instead.