[Glade-users] Ghost signals with libglade
- From: dk7g at yahoo.com.au (Derek Law)
- Subject: [Glade-users] Ghost signals with libglade
- Date: Wed, 6 Dec 2006 21:21:53 +1100 (EST)
Hi,
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]