Skip to content

Commit bbceb47

Browse files
authored
Merge branch 'main' into close-window-when-last-tab-is-closed
2 parents 0644c6b + fe16519 commit bbceb47

3 files changed

Lines changed: 17 additions & 14 deletions

File tree

libcore/DndHandler.vala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ namespace Files {
388388
var actions = possible_actions;
389389
var suggested_action = selected_action;
390390
var target_location = dest.get_target_location ();
391-
suggested_action_return = Gdk.DragAction.PRIVATE;
391+
suggested_action_return = Gdk.DragAction.DEFAULT;
392392

393393
if (drop_file_list == null || drop_file_list.data == null) {
394394
return Gdk.DragAction.DEFAULT;
@@ -406,8 +406,7 @@ namespace Files {
406406
} else if (dest.is_executable ()) {
407407
actions |= (Gdk.DragAction.COPY |
408408
Gdk.DragAction.MOVE |
409-
Gdk.DragAction.LINK |
410-
Gdk.DragAction.PRIVATE);
409+
Gdk.DragAction.LINK);
411410
} else {
412411
actions = Gdk.DragAction.DEFAULT;
413412
}

po/ja.po

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: pantheon-files\n"
99
"Report-Msgid-Bugs-To: \n"
1010
"POT-Creation-Date: 2026-05-13 10:24+0000\n"
11-
"PO-Revision-Date: 2026-01-08 12:55+0000\n"
11+
"PO-Revision-Date: 2026-05-21 22:56+0000\n"
1212
"Last-Translator: Ryo Nakano <ryonakaknock3@gmail.com>\n"
1313
"Language-Team: Japanese <https://l10n.elementaryos.org/projects/files/files/"
1414
"ja/>\n"
@@ -17,7 +17,7 @@ msgstr ""
1717
"Content-Type: text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding: 8bit\n"
1919
"Plural-Forms: nplurals=1; plural=0;\n"
20-
"X-Generator: Weblate 5.11.4\n"
20+
"X-Generator: Weblate 2026.5\n"
2121
"X-Launchpad-Export-Date: 2017-06-11 06:26+0000\n"
2222

2323
#: filechooser-portal/FileChooserDialog.vala:89 src/View/Window.vala:192
@@ -1892,16 +1892,16 @@ msgstr "全員"
18921892

18931893
#: src/View/AbstractDirectoryView.vala:313
18941894
msgid "This folder only contains hidden files"
1895-
msgstr ""
1895+
msgstr "このフォルダーには隠しファイルのみが存在します"
18961896

18971897
#: src/View/AbstractDirectoryView.vala:320
18981898
#: src/View/AbstractDirectoryView.vala:326
18991899
msgid "Show"
1900-
msgstr ""
1900+
msgstr "表示"
19011901

19021902
#: src/View/AbstractDirectoryView.vala:326
19031903
msgid "Hide"
1904-
msgstr ""
1904+
msgstr "隠す"
19051905

19061906
#: src/View/AbstractDirectoryView.vala:879
19071907
#: src/View/AbstractDirectoryView.vala:1205
@@ -2153,14 +2153,12 @@ msgid "Open the system security and privacy settings app"
21532153
msgstr "システムのセキュリティとプライバシー設定アプリを開きます"
21542154

21552155
#: src/View/Slot.vala:31
2156-
#, fuzzy
2157-
#| msgid "This Folder Does Not Exist"
21582156
msgid "This Folder does not contain any files"
2159-
msgstr "このフォルダーは存在しません"
2157+
msgstr "このフォルダーにはファイルがありません"
21602158

21612159
#: src/View/Slot.vala:32
21622160
msgid "Trash does not contain any files"
2163-
msgstr ""
2161+
msgstr "ゴミ箱にはファイルがありません"
21642162

21652163
#: src/View/Slot.vala:33
21662164
msgid "There Are No Recent Files"

src/View/Window.vala

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ public class Files.View.Window : Hdy.ApplicationWindow {
6868
{"tabhistory-restore", action_tabhistory_restore, "s" },
6969
{"forward", action_forward, "i"},
7070
{"back", action_back, "i"},
71-
{"focus-sidebar", action_focus_sidebar}
71+
{"focus-sidebar", action_focus_sidebar},
72+
{"focus-current-container", action_focus_current_container}
7273
};
7374

7475
private static uint window_id = 0;
@@ -161,7 +162,8 @@ public class Files.View.Window : Hdy.ApplicationWindow {
161162
marlin_app.set_accels_for_action ("win.back(1)", {"<Alt>Left", "XF86Back"});
162163
marlin_app.set_accels_for_action ("win.tab::TAB", {"<Shift><Ctrl>K"});
163164
marlin_app.set_accels_for_action ("win.tab::WINDOW", {"<Ctrl><Alt>N"});
164-
marlin_app.set_accels_for_action ("win.focus-sidebar", {"<Ctrl>Left"});
165+
marlin_app.set_accels_for_action ("win.focus-sidebar", {"<Ctrl><Alt>Left"});
166+
marlin_app.set_accels_for_action ("win.focus-current-container", {"<Ctrl><Alt>Right"});
165167
}
166168

167169
build_window ();
@@ -1006,6 +1008,10 @@ public class Files.View.Window : Hdy.ApplicationWindow {
10061008
sidebar.focus ();
10071009
}
10081010

1011+
private void action_focus_current_container () {
1012+
grab_focus ();
1013+
}
1014+
10091015
private void before_undo_redo () {
10101016
doing_undo_redo = true;
10111017
update_undo_actions ();

0 commit comments

Comments
 (0)