[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: dcop incompatibility?
From: Waldo Bastian <bastian () kde ! org>
Date: 2005-02-27 16:06:07
Message-ID: 200502271706.10996.bastian () kde ! org
[Download RAW message or body]
On Sunday 27 February 2005 13:36, Michael Reiher wrote:
> Hi!
>
> The old Kwintv uses:
>
> QByteArray data;
> m_bHaveKDESaver = kapp->dcopClient()->findObject("kdesktop",
> "KScreensaverIface",
> "enable(bool)",
> data,
> m_screenSaverApp,
> m_screenSaverObj);
>
> to detect whether there is a KDE screensaver available. This used to work
> fine. But recently I noticed, that it obviously doesn't anymore(and thus
> the screensaver, isn't disabled anymore). findObject() apparently doesn't
> return true anymore, even though the dcop object exists. So, has
> dcop/dcopclient changed in an incompatible way?
The above snippet suggests that you call a function that takes a bool as
argument, but you don't seem to pass any arguments at all to it. I think DCOP
now catches that case and fails. Previously it could crash in such situation
(with types other than bool).
Cheers,
Waldo
--
bastian@kde.org | Free Novell Linux Desktop 9 Evaluation Download
bastian@suse.com | http://www.novell.com/products/desktop/eval.html
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic