Re: Gtk::Widget::on_hide



On 19/11/2013 16:56, John Emmas wrote:
Many thanks for persevering with this Kjell. I'm just about to try applying the patches that Murray recommended here:-

https://bugzilla.gnome.org/show_bug.cgi?id=605728#c25

and I'll report back if that changes anything.


Okay... I just finished applying the patches. I've by no means carried out any exhaustive testing but initial signs are that it's fixed the crashing issue. I'll do some more comprehensive testing tomorrow but my first impression is that this stuff is still some way from working elegantly. For example, Gtk::Widget::on_unrealize() is a virtual function. However, if I override it in my derived class (MyDialog, which is derived from Gtk::Dialog), Gtk::Widget::on_unrealize() continues to get called, instead of MyDialog::on_unrealize(). Unfortunately, I can't tell whether that problem already existed or whether the patches are somehow responsible. To be fair though, that's the only issue I've noticed so I think we can definitely regard this as progress!

I've had a long and very tiring day today so I'll sign off for tonight - but if anyone can spare a few minutes, maybe they could try over-riding some of those on_xxx() functions (in their own, derived class) and see if the correct version gets called? Many thanks to everyone for their help.

John


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