Re: Gtk2::Plug -- connect?

Matthew Weier OPhinney said:
    $plug->connect('destroy', <ref to some method/sub>);

should be:
      $plug->signal_connect( destroy => <ref to some method/sub> );

the => part is optional, if you don't do it then the parameters are passed as
you did before.

g_object_signal_connect becomes signal_connect once the g_object prefix is
removed. see the file new-gtk2-perl.html in the gtk2-perl-xs root dir on cvs
for a  description of how to map c names to their perl counterparts. if you
don't have a cvs check out take a look at the cvs browser on the project's
sourceforge page.


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