https://bugzilla.novell.com/show_bug.cgi?id=421794
User sh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=421794#c22
--- Comment #22 from Stefan Hundhammer 2008-09-24 10:23:48 MDT ---
Ricardo, in addition to moving YWidget::priv::magic one level up to
YWidget::_magic, I also added a new virtual method
YUI::deleteNotify( YWidget * widget)
that is called in each YWidget destructor. This can be used to remove pending
events for that widget; YSimpleEventHandler also got a new method
deletePendingEventsFor( YWidget * widget) to do just that.
In the derived UI, reimplement deleteNotify like this:
void YQUI::deleteNotify( YWidget * widget )
{
_eventHandler.deletePendingEventsFor( widget );
}
(see also the latest YQUI.h and YQUI.cc)
Since it is not a requirement that each UI uses YSimpleEventHandler
(yast2-ncurses uses another one - mostly for historical reasons), this can't be
done completely transparently in the libyui level.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.