[Xfce4-commits] <thunar:master> Fix the sample D-Bus client for the org.xfce.FileManager interface.

Jannis Pohlmann noreply at xfce.org
Tue Nov 9 21:58:01 CET 2010


Updating branch refs/heads/master
         to 02b132833ea4453f4fafe5be0c216435b1e338d1 (commit)
       from a993255980796bbbca9fcff40eea9df49cf675b6 (commit)

commit 02b132833ea4453f4fafe5be0c216435b1e338d1
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Tue Nov 9 21:55:20 2010 +0100

    Fix the sample D-Bus client for the org.xfce.FileManager interface.
    
    Make sure to always pass a fourth startup_id parameter to all D-Bus
    methods (add the parameter in the comments as well).

 examples/xfce-file-manager.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/examples/xfce-file-manager.py b/examples/xfce-file-manager.py
index 0ff3c27..aba5fa6 100755
--- a/examples/xfce-file-manager.py
+++ b/examples/xfce-file-manager.py
@@ -41,26 +41,26 @@ xfce_file_manager = dbus.Interface(xfce_file_manager_object, 'org.xfce.FileManag
 # for example, to open a new file manager window for /tmp, you
 # would use the following method:
 #
-# xfce_file_manager.DisplayFolder('/tmp', '')
+# xfce_file_manager.DisplayFolder('/tmp', '', '')
 #
 # or, if you also want to pre-select a file in the folder, you
 # can use:
 #
-# xfce_file_manager.DisplayFolderAndSelect('/tmp', 'file.txt', '')
+# xfce_file_manager.DisplayFolderAndSelect('/tmp', 'file.txt', '', '')
 #
 # else if you want to display the file managers preferences
 # dialog, you'd use
 #
-# xfce_file_manager.DisplayPreferencesDialog('')
+# xfce_file_manager.DisplayPreferencesDialog('', '')
 #
 # and to open the file properties dialog of a given file, use
 #
-# xfce_file_manager.DisplayFileProperties('/path/to/file', '')
+# xfce_file_manager.DisplayFileProperties('/path/to/file', '', '')
 #
 # and last but not least, to launch a given file (or open
 # a folder), use
 #
-# xfce_file_manager.Launch('/path/to/file', '')
+# xfce_file_manager.Launch('/path/to/file', '', '')
 #
 # See the thunar-dbus-service-infos.xml file for the exact
 # interface definition.
@@ -68,4 +68,4 @@ xfce_file_manager = dbus.Interface(xfce_file_manager_object, 'org.xfce.FileManag
 
 # We just popup a new window for the root directory here to
 # demonstrate that it works. ;-)
-xfce_file_manager.Launch('/', '')
+xfce_file_manager.Launch('/', '', '')



More information about the Xfce4-commits mailing list