Widgets problem with NPAPI
- From: Zoltan Boszormenyi <zboszor freemail hu>
- To: gtk-list gnome org
- Cc: Hans-Juergen Schoenig <hs cybertec at>
- Subject: Widgets problem with NPAPI
- Date: Tue, 24 Feb 2009 10:54:26 +0100
Hi,
I am in the middle of writing a PDF-handler plugin
that uses GTK and Poppler-GLib. The requirement is
that it has to work in Opera. I simply use gtk_plug_new()
on the Window ID I get via NPAPI and add widgets into
it as a container. The plugin works nicely with Firefox
when using nspluginwrapper.
But I have some problems when I try to run it inside Opera.
The problem with Opera is that the focus works in a very
strange way, it seems that all widgets receive FOCUS IN events
as soon as the pointer enters the plugin subwindow area.
When I click anywhere inside the plugin area, always the same
specific widget (it's a combobox) receives the mouse event,
no matter where I click. The combobox doesn't even set to
have the initial focus. The combobox is packed into a hbox
after a spinbutton which does have the initial focus.
The focus/highlighting starts to work correctly after I click
outside of the combobox to close it. It's very annoying
and is a showstopper for usability.
As far as I can see, Opera has its own plugin wrapper
that only uses Xlib, i.e. no Qt and no GTK.
Does anyone know how to work around this problem with Opera?
I can provide the current plugin code privately.
Thanks in advance and best regards,
Zoltán Böszörményi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]