[gnome-terminal/gsettings] nautilus: Make sure action names for each item are unique
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal/gsettings] nautilus: Make sure action names for each item are unique
- Date: Mon, 5 Dec 2011 17:33:39 +0000 (UTC)
commit 3567f45993f2faafda34c9758b6a68ff26c1031b
Author: Christian Persch <chpe gnome org>
Date: Fri Nov 25 21:57:32 2011 +0100
nautilus: Make sure action names for each item are unique
src/terminal-nautilus.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/terminal-nautilus.c b/src/terminal-nautilus.c
index bb77fcf..d2be458 100644
--- a/src/terminal-nautilus.c
+++ b/src/terminal-nautilus.c
@@ -453,8 +453,13 @@ terminal_nautilus_menu_item_new (TerminalNautilus *nautilus,
const char *tooltip;
if (!run_in_mc) {
- action_name = remote_terminal ? "TerminalNautilus:OpenRemote"
- : "TerminalNautilus:OpenLocal";
+ if (is_file_item) {
+ action_name = remote_terminal ? "TerminalNautilus:OpenRemote"
+ : "TerminalNautilus:OpenLocal";
+ } else {
+ action_name = remote_terminal ? "TerminalNautilus:OpenFolderRemote"
+ : "TerminalNautilus:OpenFolderLocal";
+ }
switch (terminal_file_info) {
case FILE_INFO_SFTP:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]