From 5f431fab261657050f315663f15d5548d30b21b5 Mon Sep 17 00:00:00 2001
From: yangzhuangzhuang <yangzhuangzhuang@xfusion.com>
Date: Fri, 26 Aug 2022 11:26:25 +0800
Subject: [PATCH] display tooltip content

---
 po/zh_CN.po                          | 8 ++++++++
 src/resources/ui/nautilus-toolbar.ui | 7 +++++++
 2 files changed, 15 insertions(+)

diff --git a/po/zh_CN.po b/po/zh_CN.po
index 3bab9e8..651e8c2 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -5870,3 +5870,11 @@ msgstr "无法粘贴文件"
 msgid "Show _Sidebar"
 msgstr "显示侧边栏(_S)"
 
+msgid "New window"
+msgstr "新建窗口"
+
+msgid "Cut"
+msgstr "剪切"
+
+msgid "Copy"
+msgstr "复制"
diff --git a/src/resources/ui/nautilus-toolbar.ui b/src/resources/ui/nautilus-toolbar.ui
index de22315..9748857 100644
--- a/src/resources/ui/nautilus-toolbar.ui
+++ b/src/resources/ui/nautilus-toolbar.ui
@@ -26,6 +26,7 @@
                 <property name="receives_default">True</property>
                 <property name="hexpand">True</property>
                 <property name="action_name">app.new-window</property>
+                <property name="tooltip_text" translatable="yes">New window</property>
                 <child>
                   <object class="GtkImage">
                     <property name="visible">True</property>
@@ -47,6 +48,7 @@
                 <property name="receives_default">True</property>
                 <property name="hexpand">True</property>
                 <property name="action_name">win.new-tab</property>
+                <property name="tooltip_text" translatable="yes">New tab</property>
                 <child>
                   <object class="GtkImage">
                     <property name="visible">True</property>
@@ -68,6 +70,7 @@
                 <property name="receives_default">True</property>
                 <property name="hexpand">True</property>
                 <property name="action_name">view.new-folder</property>
+                <property name="tooltip_text" translatable="yes">New Folder</property>
                 <child>
                   <object class="GtkImage">
                     <property name="visible">True</property>
@@ -131,6 +134,7 @@
                 <property name="valign">center</property>
                 <property name="hexpand">True</property>
                 <property name="action_name">view.cut</property>
+                <property name="tooltip_text" translatable="yes">Cut</property>
                 <child>
                   <object class="GtkImage">
                     <property name="visible">True</property>
@@ -153,6 +157,7 @@
                 <property name="halign">center</property>
                 <property name="hexpand">True</property>
                 <property name="action_name">view.copy</property>
+                <property name="tooltip_text" translatable="yes">Copy</property>
                 <child>
                   <object class="GtkImage">
                     <property name="visible">True</property>
@@ -175,6 +180,7 @@
                 <property name="halign">center</property>
                 <property name="hexpand">True</property>
                 <property name="action_name">view.paste</property>
+                <property name="tooltip_text" translatable="yes">Paste</property>
                 <child>
                   <object class="GtkImage">
                     <property name="visible">True</property>
@@ -709,6 +715,7 @@
             <property name="halign">center</property>
             <property name="valign">center</property>
             <property name="popover">app_menu</property>
+            <property name="tooltip_text" translatable="yes">Open menu</property>
             <child>
               <object class="GtkImage">
                 <property name="visible">True</property>
-- 
2.27.0

