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

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


--=-K0SnGmEjtnx6qRQ6GBeY
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.

Cheers

-- Alvaro



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

# FILE=3Dconsole.glade
FILE=3D$1

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()=
);\n}"}'

--=-K0SnGmEjtnx6qRQ6GBeY--