Possible to call raise/lower and openURL via konqueror dcop interface?
David Faure
dfaure at klaralvdalens-datakonsult.se
Fri Jan 10 20:32:15 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 10 January 2003 20:48, Eric F. Sorton wrote:
> Hi All,
>
> I am attempting to use DCOP (via the dcop command) to raise/lower a konqueror
> window AND control the URL open in the window. I am able to do one or the
> other, but not both. It seems that raise/lower are part of
> KMainWindowInterface and is available when konq is first opened. openURL is
> part of the KonqMainWindowIface and is available after the getWindows method
> in KonquerorIface is called.
>
> So, is there a way to access the methods in both KMainWindowInterface and
> KonqMainWindowIface?
Eek. The two DCOPObjects have the same name, so the second hides the first.
The best way would be to merge them into the same object with all methods,
Doing it properly would require that creating the dcop interface for a kmainwindow is a
virtual method... at the moment it's d->m_interface = new KMainWindowInterface(this);
This can't be done until KDE-4.0.
But for now we can simply use the same trick: replace the default dcop interface
with one that has all methods, using inheritance.
Please try the attached patch.
[Another solution would be to rename the dcopobjects created by getWindows,
but this might break some scripts :(
(although getWindows returns DCOPRefs, so well-written scripts should rely on
what the name is going to be.... But shell-scripts are rarely free of such hacks).]
- --
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Klarälvdalens Datakonsult AB, Platform-independent software solutions
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+Hy3Q72KcVAmwbhARArjfAJsEIDvbZ219+2oPQMc/xPqb1YQtOgCdHGwa
5Fga9E+t7+BUPxZe6eVY+YM=
=oHW7
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dcopinterfacefix.diff
Type: text/x-diff
Size: 1431 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20030110/5a777b1f/attachment.diff>
More information about the kfm-devel
mailing list