An automatic signal stub function generator



Hi! Gtk newbie, here.

I've found various starts and stops on this, but didn't see a complete
solution, so I took a few seconds and slapped something
together. Probably already exists in cleaner form, but if it doesn't
maybe it'll help someone. Or maybe I can just use it to offer pointers
to the right solution:

http://www.flutterby.com/software/gtk2-perl-tools/gtk2-perl-connect-signals.txt

Is a little script that runs through a Glade file, finds signals, and
puts stub functions in your Perl if those stub functions don't already
exist. Run this, call the appropriate
"signal_autoconnect_from_package", and then it's just a simple matter
of programming.

Dan
(Coming here from PerlTk, learning painfuly, hoping that as soon as I
can get a little further I can start documenting the process and help
those who come along later. Also hoping that as I learn I can come up
with some wrappers that make some of the more complex structures more
suitable to a scripting language.)




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