[pygtk] pygtkmozembed: new-window
Jan Christoph Ebersbach
pygtk at e-jc.de
Tue May 22 16:54:01 WST 2007
On Tue 08-05-2007 12:56, Jan Christoph Ebersbach wrote:
> Hi,
>
> I tried to embed mozilla into a gtk application and it worked right
> away .. but I am not able to handle links with a 'target="_blank"'
> attribute correctly.
>
> If I don't handle the new-window signal, nothing happens (no new
> window occurs and the page is also not loaded). If I try to handle it,
> nothing happens either!
...
> According to the documentation
> (http://www.pygtk.org/pygtkmozembed/index.html) I should return a new
> mozembed-object via retval but retval is of the type gobject.GPointer
> and there seems to be no way to fill in a mozembed instance.
I didn't manage to use the GPointer but I found a workaround. I set the
following values in the Mozilla User Preferences file:
user_pref("browser.link.open_newwindow", 1);
user_pref("browser.link.open_newwindow.restriction", 0);
user_pref("browser.link.open_external", 1);
All links will be opened in the same tab without any need to achieve
this behavior through the new-window callback.
--
Jan Christoph Ebersbach
Have you ever read God's love letter to you? http://www.gottkennen.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20070522/3803b77f/attachment.pgp
More information about the pygtk
mailing list