[Gtk-sharp-list] A quick script to help implement events in libglade#

Alvaro acs@andago.com
07 Oct 2002 14:14:48 +0200

Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hi guys!

I have been playing with libglade# and I love it :)

But I hate to write all the methods that I have put in the glade-2 tool
another time in the code, so I create a little and quick script to take
all this methods from the glade file and generate the code that you can
cut and paste in your application.


-- Alvaro

Content-Disposition: attachment; filename=SeekEvents
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; name=SeekEvents; charset=ISO-8859-1

# FILE=3Dconsole.glade

grep signal $FILE | awk -Fhandler '{print $2}' | awk '{print $1}' | awk -F=
=3D\" '{print $2}' | awk -F\" '{print $1}' | awk '{print "public void " $1 =
" (System.Object o, EventArgs args) {\n\tConsole.WriteLine (args.ToString()=