Revision 797040e...

Go back to digest for 1st July 2012

Features in KDE Base

Martin Gräßlin committed changes in [kde-workspace/KDE/4.9] /scripting:

Support for calling D-Bus methods from scripts

A new global method is exported to perform a remote method call
through D-Bus. The call is always performed async invoking a
callback once the call completed passing through the arguments
received from D-Bus.

Possible code looks like the following:
callDBus("org.kde.kwin", "/KWin", "org.kde.KWin", "currentDesktop", function (desktop) {
print("Current Desktop through D-Bus: ", desktop);
});

REVIEW: 105396

File Changes

Modified 3 files
  • /scripting
  •   kwin/documentation-global.xml
  •   kwin.cpp
  •   kwin.h
3 files changed in total