[Glade-users] Ghost signals with libglade


I just came across a strange behavior with libglade
yesterday. It's not lethal or anything but it's still
interesting to find out what actually happened.

I designed a GUI with glade (It's Glade-2 as I was a
bit panicky to switch to Glade-3 at this point for
reasons mentioned in another mail) which had a
GtkDrawingArea widget receiving "button_press_event"
(along with some other events).  I also used autotools
to ease the building process.  Everything went fine
until I needed to parse a pointer to a structure to
the signal handler.  I didn't do that straight away
but something simpler:

1. I manually removed the entry for the
button_press_event in the .glade file
2. In main.c, I obtained the drawing area widget

pdrawingarea1 = glade_xml_get_widget (xml, "pdrawingarea1");

Send instant messages to your online friends http://au.messenger.yahoo.com 

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