[nautilus-actions] Add samples to the distribution



commit bce460c20b5014d050d689e1a62cbc75823dbc16
Author: Pierre Wieser <pwieser trychlos org>
Date:   Sun Aug 15 23:18:41 2010 +0200

    Add samples to the distribution

 ChangeLog                               |    6 +++++
 data/actions/Makefile.am                |   11 ++++++++++
 data/actions/my-first-na-action.desktop |   33 +++++++++++++++++++++++++++++++
 data/actions/my-first-na-menu.desktop   |   10 +++++++++
 data/actions/open-terminal-here.desktop |   15 ++++++++++++++
 data/actions/show-na-parameters.desktop |   20 ++++++++++++++++++
 data/actions/show-parameters.desktop    |   12 -----------
 7 files changed, 95 insertions(+), 12 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3808e5e..3cb2444 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-08-15 Pierre Wieser <pwieser trychlos org>
 
+	* data/actions/Makefile.am:
+	* data/actions/my-first-na-action.desktop:
+	* data/actions/my-first-na-menu.desktop:
+	* data/actions/open-terminal-here.desktop:
+	* data/actions/show-na-parameters.desktop: New files.
+
 	* data/gconf-schemas/Makefile.am:
 	Install GConf schemas in PKGDATADIR/gconf-schemas.
 
diff --git a/data/actions/Makefile.am b/data/actions/Makefile.am
index 93cbc52..25c994f 100644
--- a/data/actions/Makefile.am
+++ b/data/actions/Makefile.am
@@ -25,3 +25,14 @@
 #   Rodrigo Moya <rodrigo gnome-db org>
 #   Pierre Wieser <pwieser trychlos org>
 #   ... and many others (see AUTHORS)
+
+actionsdir = $(pkgdatadir)/actions
+
+actions_DATA = $(actions_files)
+
+actions_files = \
+	my-first-na-action.desktop			\
+	my-first-na-menu.desktop			\
+	open-terminal-here.desktop			\
+	show-na-parameters.desktop			\
+	$(NULL)
diff --git a/data/actions/my-first-na-action.desktop b/data/actions/my-first-na-action.desktop
new file mode 100644
index 0000000..193549f
--- /dev/null
+++ b/data/actions/my-first-na-action.desktop
@@ -0,0 +1,33 @@
+
+[Desktop Entry]
+Type=Action
+Icon[en_US.UTF-8]=gtk-about
+Icon[en_US]=gtk-about
+Icon[en.UTF-8]=gtk-about
+Icon[en]=gtk-about
+Icon[C]=gtk-about
+Tooltip[en_US.UTF-8]=This will execute an action with some parameters
+Tooltip[en_US]=This will execute an action with some parameters
+Tooltip[en.UTF-8]=This will execute an action with some parameters
+Tooltip[en]=This will execute an action with some parameters
+Tooltip[C]=This will execute an action with some parameters
+ToolbarLabel[en_US.UTF-8]=My first action
+ToolbarLabel[en_US]=My first action
+ToolbarLabel[en.UTF-8]=My first action
+ToolbarLabel[en]=My first action
+ToolbarLabel[C]=My first action
+Name[en_US.UTF-8]=My first action
+Name[en_US]=My first action
+Name[en.UTF-8]=My first action
+Name[en]=My first action
+Name[C]=My first action
+Profiles=profile-zero;
+
+Name[en_US.utf8]=My first action
+Tooltip[en_US.utf8]=This will execute an action with some parameters
+Icon[en_US.utf8]=gtk-about
+ToolbarLabel[en_US.utf8]=My first action
+
+[X-Action-Profile profile-zero]
+Exec=zenity --info --text="%c selected item(s): %f"
+Name[en_US.UTF-8]=Default profile
diff --git a/data/actions/my-first-na-menu.desktop b/data/actions/my-first-na-menu.desktop
new file mode 100644
index 0000000..88d2cae
--- /dev/null
+++ b/data/actions/my-first-na-menu.desktop
@@ -0,0 +1,10 @@
+
+[Desktop Entry]
+Type=Menu
+Name[en]=My First Nautilus-Actions menu
+Name[C]=My First Nautilus-Actions menu
+ItemsList=my-first-na-action;show-na-parameters;open-terminal-here;
+Tooltip[en]=Contains some default Nautilus-Actions actions
+Tooltip[C]=Contains some default Nautilus-Actions actions
+Icon[en]=/usr/share/icons/hicolor/22x22/mimetypes/application-x-catalog.png
+Icon[C]=/usr/share/icons/hicolor/22x22/mimetypes/application-x-catalog.png
diff --git a/data/actions/open-terminal-here.desktop b/data/actions/open-terminal-here.desktop
new file mode 100644
index 0000000..67773ec
--- /dev/null
+++ b/data/actions/open-terminal-here.desktop
@@ -0,0 +1,15 @@
+
+[Desktop Entry]
+Type=Action
+TargetLocation=true
+Icon[en]=/usr/share/icons/gnome/24x24/apps/gnome-terminal.png
+Tooltip[en]=Open a terminal if the current location
+ToolbarLabel[en]=Open a terminal here
+Name[en]=Open a terminal here
+Profiles=profile-zero;
+TargetToolbar=true
+
+[X-Action-Profile profile-zero]
+Exec=gnome-terminal --working-directory=%f
+Name[en_US.UTF-8]=Default profile
+MimeTypes=inode/directory;
diff --git a/data/actions/show-na-parameters.desktop b/data/actions/show-na-parameters.desktop
new file mode 100644
index 0000000..d5b19d0
--- /dev/null
+++ b/data/actions/show-na-parameters.desktop
@@ -0,0 +1,20 @@
+
+[Desktop Entry]
+Type=Action
+Profiles=profile-pre-v2;
+Enabled=false
+Name[en]=Display Nautilus-Actions Parameters
+Name[C]=Display Nautilus-Actions Parameters
+Icon[en]=/usr/share/icons/hicolor/16x16/apps/nautilus-actions.png
+Icon[C]=/usr/share/icons/hicolor/16x16/apps/nautilus-actions.png
+ToolbarLabel[en]=Display Nautilus-Actions Parameters
+ToolbarLabel[C]=Display Nautilus-Actions Parameters
+Tooltip[en]=Display the Nautilus-Actions parameters
+Tooltip[C]=Display the Nautilus-Actions parameters
+TargetLocation=true
+TargetToolbar=true
+
+[X-Action-Profile profile-pre-v2]
+Exec=zenity --list --text="Nautilus-Actions parameters for the selected items:" --column="Parameter" --column="Token" --column="Value" "space-separated list of basenames" %%B "%B" "(first) basename" %%b "%b" "count selection" %%c "%c" "(first) base directory" %%d "%d" "space-separated list of base directoroes" %%D "%D" "(first) filename" %%f "%f" "space-separated list of filenames" %%F "%F" "hostname" %%h "%h" "(first) mimetype" %%m "%m" "space-separated list of mimetypes" %%M "%M" "username" %%n "%n" "port number" %%p "%p" "scheme" %%s "%s" "(first) URI" %%u "%u" "space-separated list of URIs" %%U "%U" "(first) basename without extension" %%w "%w" "space-separated list of basenames w/o extension" %%W "%W" "(first) extension" %%x "%x" "space-separated list of extensions" %%X "%X" --height=370 --width=768 --print-column=ALL
+Name[en]=Profile automatically created from pre-v2 action
+Name[C]=Profile automatically created from pre-v2 action



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]