dialog response signal class closure



The program below is an attempt to subclass Gtk2::Dialog and use a class
closure to get a new default response signal handler.  But it gets
response values as numbers like -5 for the button or -4 for a
delete-event, instead of the 'ok' and 'delete-event' strings which come
from an ordinary $dialog->signal_connect.  Is that meant to be so?  If
yes are there constants for GTK_RESPONSE_OK etc lurking around to test
the values against?

Attachment: foo.pl
Description: Text Data



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