+ exposeEvent.drawable = (Drawable)win->GetNativeData(NS_NATIVE_WIDGET);
You want NS_NATIVE_WINDOW so that this can work in GTK1.
Other than that, this looks pretty good on the painting side. But the event handling is missing. You need something like this:
http://lxr.mozilla.org/mozilla/source/layout/generic/nsObjectFrame.cpp#3883
Fix that and I think we're close to having something we can check in ... need testing from the Macromedia folks though, really.
+ exposeEvent. drawable = win->GetNativeD ata(NS_ NATIVE_ WIDGET) ;
(Drawable)
You want NS_NATIVE_WINDOW so that this can work in GTK1.
Other than that, this looks pretty good on the painting side. But the event
handling is missing. You need something like this:
http:// lxr.mozilla. org/mozilla/ source/ layout/ generic/ nsObjectFrame. cpp#3883
Fix that and I think we're close to having something we can check in ... need
testing from the Macromedia folks though, really.