[pygtk] libglade bug?
Rob Brown-Bayliss
r.brown.bayliss at gmail.com
Tue May 5 15:16:28 WST 2009
On Mon, 2009-05-04 at 20:06 +1200, Rob Brown-Bayliss wrote:
I have tracked it down to a bug in glade. I am using Glade 3.6.1 on
Ubuntu 9.04
What has been happening is each time I change the UI via glade, it has
been removing the signal for the delete-event and destroy-event from the
xml file it saves:
<property name="enable_layout_config">True</property>
<signal name="destroy_event" handler="on_app1_destroy_event"/>
### This line not saved
<signal name="delete_event" handler="on_app1_delete_event"/> ###
This line not saved
<child internal-child="dock">
<widget class="BonoboDock" id="bonobodock1">
so when I do:
self.siglist = {"on_refresh_toolbutton_clicked":
self.request_refresh,
"on_quit1_activate": self.on_quit1_activate,
"on_app1_destroy_event": self.on_app1_delete_event,
"on_app1_delete_event": self.on_app1_delete_event}
self.wtree.signal_autoconnect(self.siglist)
there is no signal to connect to on_app1_delete_event so the window gets
destroyed, hence no widget to check the value of etc...
I will report to the maintainers.
--
Rob Brown-Bayliss <r.brown.bayliss at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20090505/19e36e9a/attachment.htm
More information about the pygtk
mailing list