[OS X] make KWalletD::connectToScreenSaver a stub function
Review Request #120580 - Created Oct. 14, 2014 and submitted
|René J.V. Bertin|
OS X doesn't use an X11-based screensaver, and KDE/OS X is not based on X11.
Until now, kwalletd was built with a MacPorts patch that simply excluded the connectToScreenSaver function from kwalletd.cpp as well as from kwalletd.h because the moc preprocessor doesn't respect the
#ifdef Q_WS_X11conditional around the function prototype.
This patch removes the conditional code from the header (leaving it only around the
*screensaverinstance variable, and makes the function a stub on OS X.
I'd be interested to know the reason for connecting to the screensaver. If it's for idle timing I might be able to port replacement functionality already committed to ktimetracker for that purpose.
on OS X 10.6.8 .
I don't know the code at all, but the #ifdef'd Q_SLOT declaration is pointless and "adding" a slot is ABI stable, so this is fine to push. (Maybe wait 24h to see whether someone more familiar with the code shows up)