What tutorial are you following?
What is in @_? Is it not the button and event?
You can always interrogate the event object and find the button that called it, see Gtk2::Entry scroll-event/Re^3: Gtk2::Entry scroll-event, Gtk2-Perl: How to catch shift-clicking of a button?
In reply to Re: GTK2+glade and knowing who called
by Anonymous Monk
in thread GTK2+glade and knowing who called
by ultibuzz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |