Hello Christophe / all other guys,
I have a little but very irritating problem with
my own Mozilla embedding code for SWT/Fox (written in C++ for reasons I feel I
don't have to state here).
The problem happens when embedding Mozilla on
X11, inside XEMBED-aware container widget (also done by me).
Problem is, even though I inform the GtkPlug
widget (that in turn hosts the Mozilla widget), that it now has the focus (using
the XEMBED_FOCUS_IN message, that is), the browser does not seem to accept
the XKeyEvent messages that I do forward to the GtkPlug widget. The strange
thing is, I can see the caret blinking inside the text field at http://google.com. Also, the caret seems to somehow
"react" on TAB key (starts to blink faster while the TAB is pressed). Of course,
I also do call webBrowserFocus->Activate(), after the XEMBED_FOCUS_IN
message. The strangest thing is, even when I don't call neither XEMBED_FOCUS_IN,
nor webBrowserFocus->Activate(), the caret is still blinking in the text
field. In this case, of course, the forwarded key events are also not "accepted"
by the browser.
I know the case I've described is too vague to
give me any hints, but do you have any idea:
- To what extent Gecko engine uses the XEMBED
protocol for dealing with the container code? I mean, there's
nsIBaseWindow->SetFocus(), so maybe this call is the important one for
setting focus into the browser, not XEMBED_FOCUS_IN.
- Any idea of a simple XEMBED client with which I
can test my XEMBED-container code?
Regards,
Ivan
----- Original Message -----
Sent: Tuesday, August 17, 2004 4:06
PM
Subject: RE: [platform-swt-dev]
NS_InitEmbedding error when embedding a Browser
Hi Xavi, I've opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=72087
Let's pursue there (add yourself to the CC
list of this bug report)
Chris
Hi Chris,
> Haven't seen your post on the SWT newsgroup -
when was it posted? I posted it on 09/08/2004 the subject of the thread
was "NS_InitEmbedding error when running SWT Browser example" You replied
to it but I had already done what you said :(
> Where did you
obtain mozilla-1.6-r1 from? You need Mozilla 1.6 GTK2 such as the one
> available from the Mozilla XFT website indicated in the SWT FAQ:
I've installed several mozilla versions, emerging it or from Mozilla
XFT website. The version I've now installed is Mozilla 1.6 GTK2
downloaded from
http://www.scottbolander.com/mozilla-1.6-xft-gtk2-pc-linux.tar.bz2
This
morning I've tried again to install from skratch so I've uninstall the
previous installation, I've uncompressed the file downloaded, I've set up
again the environment variables MOZILLA_FIVE_HOME="/usr/lib/mozilla"
and LD_LIBRARY_PATH="/usr/lib/mozilla"
Where /usr/lib/mozilla is
mozilla installation directory. This is the same I did the other times. But
now I get a different error, here it is:
<error> Exception in
thread "main" org.eclipse.swt.SWTError: No more handles [Unknown mozilla
path]
at
org.eclipse.swt.SWT.error(SWT.java:2717)
at
org.eclipse.swt.browser.Browser.<init>(Browser.java:128)
at
ExtendedPlayer.<init>(ExtendedPlayer.java:20)
at
ExtendedPlayer.main(ExtendedPlayer.java:31)
Exception in thread
"main" </error>
I think I'm becoming crazy xDD What I'm doing
wrong?
> What do I need to run the SWT Browser inside Eclipse on
Linux GTK or Linux Motif?
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-hom e/faq.html#browserlinux
Yes, I've read this several times :-(
Thanks a lot! Xavi
Beumala
--- Outgoing mail is certified Virus Free. Checked by AVG
anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus
Database: 490 - Release Date:
09/08/2004
_______________________________________________ platform-swt-dev
mailing
list platform-swt-dev@xxxxxxxxxxx http://dev.eclipse.org/mailman/listinfo/platform-swt-dev
|