[nautilus] toolbar: add tooltips to view menu buttons
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] toolbar: add tooltips to view menu buttons
- Date: Wed, 29 Jun 2016 08:10:27 +0000 (UTC)
commit faae4feb9a7ce500611376f9e263c9fa3b320136
Author: Ernestas Kulik <ernestask src gnome org>
Date: Tue Jun 28 14:40:37 2016 +0300
toolbar: add tooltips to view menu buttons
Some button icons don't convey the intended meaning very well (e.g. the
new tab button). This commit adds tooltips to all the buttons in the
view menu.
https://bugzilla.gnome.org/show_bug.cgi?id=768135
src/resources/ui/nautilus-toolbar-menu.ui | 18 +++---------------
src/resources/ui/nautilus-toolbar-view-menu.ui | 18 +++---------------
2 files changed, 6 insertions(+), 30 deletions(-)
---
diff --git a/src/resources/ui/nautilus-toolbar-menu.ui b/src/resources/ui/nautilus-toolbar-menu.ui
index b4bceaa..384558d 100644
--- a/src/resources/ui/nautilus-toolbar-menu.ui
+++ b/src/resources/ui/nautilus-toolbar-menu.ui
@@ -20,6 +20,7 @@
<object class="GtkButton" id="new-folder">
<property name="visible">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>
@@ -27,11 +28,6 @@
<property name="icon-size">1</property>
</object>
</child>
- <child internal-child="accessible">
- <object class="AtkObject">
- <property name="accessible-name" translatable="yes">New Folder</property>
- </object>
- </child>
</object>
<packing>
<property name="expand">True</property>
@@ -43,6 +39,7 @@
<object class="GtkButton" id="bookmark-this-location">
<property name="visible">True</property>
<property name="action_name">win.bookmark-current-location</property>
+ <property name="tooltip-text" translatable="yes">Bookmark this location</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
@@ -50,11 +47,6 @@
<property name="icon-size">1</property>
</object>
</child>
- <child internal-child="accessible">
- <object class="AtkObject">
- <property name="accessible-name" translatable="yes">Bookmark this Location</property>
- </object>
- </child>
</object>
<packing>
<property name="expand">True</property>
@@ -66,6 +58,7 @@
<object class="GtkButton" id="new-tab">
<property name="visible">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>
@@ -73,11 +66,6 @@
<property name="icon-size">1</property>
</object>
</child>
- <child internal-child="accessible">
- <object class="AtkObject">
- <property name="accessible-name" translatable="yes">New Tab</property>
- </object>
- </child>
</object>
<packing>
<property name="expand">True</property>
diff --git a/src/resources/ui/nautilus-toolbar-view-menu.ui b/src/resources/ui/nautilus-toolbar-view-menu.ui
index 06ad3e9..180ce59 100644
--- a/src/resources/ui/nautilus-toolbar-view-menu.ui
+++ b/src/resources/ui/nautilus-toolbar-view-menu.ui
@@ -18,6 +18,7 @@
<object class="GtkButton" id="zoom-out">
<property name="visible">True</property>
<property name="action-name">view.zoom-out</property>
+ <property name="tooltip-text" translatable="yes">Zoom out</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
@@ -25,11 +26,6 @@
<property name="icon-size">1</property>
</object>
</child>
- <child internal-child="accessible">
- <object class="AtkObject">
- <property name="accessible-name" translatable="yes">Zoom Out</property>
- </object>
- </child>
</object>
<packing>
<property name="expand">True</property>
@@ -41,17 +37,13 @@
<object class="GtkButton" id="zoom-default">
<property name="visible">True</property>
<property name="action_name">view.zoom-standard</property>
+ <property name="tooltip-text" translatable="yes">Reset zoom</property>
<child>
<object class="GtkLabel" id="zoom_level_label">
<property name="visible">True</property>
<property name="width-chars">5</property>
</object>
</child>
- <child internal-child="accessible">
- <object class="AtkObject">
- <property name="accessible-name" translatable="yes">Reset Zoom</property>
- </object>
- </child>
</object>
<packing>
<property name="expand">True</property>
@@ -63,6 +55,7 @@
<object class="GtkButton" id="zoom-in">
<property name="visible">True</property>
<property name="action_name">view.zoom-in</property>
+ <property name="tooltip-text" translatable="yes">Zoom in</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
@@ -70,11 +63,6 @@
<property name="icon-size">1</property>
</object>
</child>
- <child internal-child="accessible">
- <object class="AtkObject">
- <property name="accessible-name" translatable="yes">Zoom In</property>
- </object>
- </child>
</object>
<packing>
<property name="expand">True</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]