subclassed GTK method overrides not being called



Hi,

If I have:

MyBase inherits from Gtk.Image
MyBase.do_draw chains up to Gtk.Image.do_draw
MyIcon inherits from MyBase
MyIcon.do_draw chains up to MyBase.do_draw

I instantiate and display MyIcon, the image displays but
MyIcon.do_draw is never called :(
Only MyBase.do_draw is called.

Test app that demonstrates this:

http://dev.laptop.org/~dsd/20111212/testdraw.py


Running pygobject-3.0.2 with the fix for
https://bugzilla.gnome.org/show_bug.cgi?id=662994 added. (even without
that patch, only MyBase.do_draw is called)

Is this a known bug?

Thanks,
Daniel


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