Gtk2::GladeXML: signals not connecting



Hi all.

I'm adding a sub that runs when a user double-clicks in a Gtk2::Entry.
If I use the following code:

$prospects->get_widget("LeadNo")->signal_connect("button-press-event",
\&on_LeadNo_button_press_event);

and click in the LeadNo field, my code runs.

However if I use Glade to connect the same signal ( which Glade calls
button_press_event ) to the above sub, nothing happens. I've tried
connecting to a number of Gtk2::Entrys and they all exhibit the same
behaviour.

Am I doing something wrong?

-- 
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak nusconsulting com au
website: http://www.nusconsulting.com.au



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