-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add more dbus methods, including x11 specific ones
git-svn-id: https://xpra.org/svn/Xpra/trunk@10740 3bb7dfac-3a0b-4e04-842a-767bc560f471
- Loading branch information
Showing
4 changed files
with
72 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env python | ||
# This file is part of Xpra. | ||
# Copyright (C) 2015 Antoine Martin <[email protected]> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
from xpra.server.dbus_server import DBUS_Server, INTERFACE | ||
import dbus.service | ||
|
||
from xpra.log import Logger | ||
log = Logger("dbus", "server") | ||
|
||
|
||
class X11_DBUS_Server(DBUS_Server): | ||
|
||
@dbus.service.method(INTERFACE) | ||
def SyncVfb(self): | ||
self.server.do_repaint_root_overlay() | ||
|
||
@dbus.service.method(INTERFACE) | ||
def ResetXSettings(self): | ||
self.server.update_all_server_settings(True) | ||
|
||
@dbus.service.method(INTERFACE, in_signature='ii') | ||
def SetDPI(self, xdpi, ydpi): | ||
self.server.set_dpi() | ||
|
||
@dbus.service.method(INTERFACE, in_signature='ii', out_signature='ii') | ||
def SetScreenSize(self, width, height): | ||
return self.server.set_screen_size(width, height) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters