[Xfce4-commits] <thunarx-python:master> Added example plugin and README
Adam Plumb
noreply at xfce.org
Thu May 27 18:10:24 CEST 2010
Updating branch refs/heads/master
to b6cb09a7bd9e0f0243d5aaecd43e1b9510ee1447 (commit)
from 14a200dca443fa56ee76152494956c0517208bf0 (commit)
commit b6cb09a7bd9e0f0243d5aaecd43e1b9510ee1447
Author: Adam Plumb <adamplumb at gmail.com>
Date: Fri Dec 11 10:36:42 2009 -0500
Added example plugin and README
examples/README | 1 +
examples/thunarx-example-plugin.py | 11 +++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/examples/README b/examples/README
new file mode 100644
index 0000000..b0dda42
--- /dev/null
+++ b/examples/README
@@ -0,0 +1 @@
+To install the example plugin, copy to your thunar prefix's /lib/thunarx-2/python folder. You may need to create the python folder.
diff --git a/examples/thunarx-example-plugin.py b/examples/thunarx-example-plugin.py
new file mode 100644
index 0000000..f2a78ab
--- /dev/null
+++ b/examples/thunarx-example-plugin.py
@@ -0,0 +1,11 @@
+import thunarx
+
+class ThunarxExamplePlugin(thunarx.MenuProvider):
+ def __init__(self):
+ print "ThunarxExamplePlugin init"
+
+ def get_file_actions(self, window, files):
+ print "in get_file_actions"
+
+ def get_folder_actions(self, window, folder):
+ print "in get_folder_actions"
More information about the Xfce4-commits
mailing list