!9 display tooltip content

From: @ikernel-mryao 
Reviewed-by: @dwl301 
Signed-off-by: @dwl301
This commit is contained in:
openeuler-ci-bot 2022-12-13 11:18:23 +00:00 committed by Gitee
commit 989cd1e762
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 97 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: nautilus Name: nautilus
Version: 3.33.90 Version: 3.33.90
Release: 5 Release: 6
Summary: Default file manager for GNOME Summary: Default file manager for GNOME
License: GPLv3+ and LGPLv2+ License: GPLv3+ and LGPLv2+
URL: https://wiki.gnome.org/Apps/Nautilus URL: https://wiki.gnome.org/Apps/Nautilus
@ -17,6 +17,7 @@ Obsoletes: %{name}-extensions
Patch01: nautius-3.33.90-translate-information-to-chinese.patch Patch01: nautius-3.33.90-translate-information-to-chinese.patch
Patch02: nautius-3.33.90-translate-English-tips-information-to-chinese.patch Patch02: nautius-3.33.90-translate-English-tips-information-to-chinese.patch
Patch03: nautius-3.33.90-display-tooltip-content.patch
%description %description
It's easier to manage your files for the GNOME desktop. Ability to browse directories on local and remote systems. It's easier to manage your files for the GNOME desktop. Ability to browse directories on local and remote systems.
@ -82,6 +83,12 @@ make test
%{_datadir}/metainfo/* %{_datadir}/metainfo/*
%changelog %changelog
* Mon Dec 12 2022 Guangzhong Yao <yaoguangzhong@xfusion.com> - 3.33.90-6
- Type:bugfix
- Id:NA
- SUG:NA
- DESC: display tooltop content
* Sun Dec 11 2022 Guangzhong Yao <yaoguangzhong@xfusion.com> - 3.33.90-5 * Sun Dec 11 2022 Guangzhong Yao <yaoguangzhong@xfusion.com> - 3.33.90-5
- Type:bugfix - Type:bugfix
- Id:NA - Id:NA

View File

@ -0,0 +1,89 @@
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