[gnome-builder] gnome-builder: Set tooltips on header bar buttons



commit 3b87dea31ec6d63b06c0495ecd2df7dd2ffba879
Author: adrian.zatreanu <zgadi_2007 yahoo com>
Date:   Sat Feb 13 17:34:47 2016 +0200

    gnome-builder: Set tooltips on header bar buttons
    
    It is an enhancement of the gnome-builder app which intends to inform the users by adding tooltips to 
buttons.
    
    Now the users will know exactly what each button does before clicking it.
    
    To fix this i edited some files and added the tooltip-text with translatable property on : The search 
bar, the menu button, the toggle button for left, bottom, right panels and also the Search bar on the 
Preferences perspective.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755185

 data/ui/ide-editor-perspective.ui      |    3 +++
 data/ui/ide-layout-tab-bar.ui          |    1 +
 data/ui/ide-preferences-perspective.ui |    1 +
 data/ui/ide-workbench-header-bar.ui    |    2 ++
 4 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/ide-editor-perspective.ui b/data/ui/ide-editor-perspective.ui
index 188ed6a..9209bd8 100644
--- a/data/ui/ide-editor-perspective.ui
+++ b/data/ui/ide-editor-perspective.ui
@@ -33,6 +33,7 @@
         <child>
           <object class="GtkToggleButton">
             <property name="action-name">panels.left</property>
+            <property name="tooltip-text" translatable="yes">Enable / Disable left panel. Shortcut: 
F9</property>
             <property name="focus-on-click">false</property>
             <property name="visible">true</property>
             <style>
@@ -49,6 +50,7 @@
         <child>
           <object class="GtkToggleButton">
             <property name="action-name">panels.bottom</property>
+            <property name="tooltip-text" translatable="yes">Enable / Disable bottom panel. Shortcut: CTRL + 
F9</property>
             <property name="focus-on-click">false</property>
             <property name="visible">true</property>
             <style>
@@ -65,6 +67,7 @@
         <child>
           <object class="GtkToggleButton">
             <property name="action-name">panels.right</property>
+            <property name="tooltip-text" translatable="yes">Enable / Disable right panel. Shortcut: SHIFT + 
F9</property>
             <property name="focus-on-click">false</property>
             <property name="visible">true</property>
             <style>
diff --git a/data/ui/ide-layout-tab-bar.ui b/data/ui/ide-layout-tab-bar.ui
index d171369..bc26d45 100644
--- a/data/ui/ide-layout-tab-bar.ui
+++ b/data/ui/ide-layout-tab-bar.ui
@@ -40,6 +40,7 @@
         </child>
         <child>
           <object class="GtkButton" id="views_add_button">
+            <property name="tooltip-text" translatable="yes">Add a new empty file to your project</property>
             <property name="action-name">perspective.new-file</property>
             <property name="focus-on-click">false</property>
             <property name="visible">true</property>
diff --git a/data/ui/ide-preferences-perspective.ui b/data/ui/ide-preferences-perspective.ui
index 52513b4..4d172f6 100644
--- a/data/ui/ide-preferences-perspective.ui
+++ b/data/ui/ide-preferences-perspective.ui
@@ -55,6 +55,7 @@
     </child>
     <child type="title">
       <object class="GtkSearchEntry" id="search_entry">
+        <property name="tooltip-text" translatable="yes">Search through preferences</property>
         <property name="hexpand">true</property>
         <property name="margin-end">6</property>
         <property name="margin-start">6</property>
diff --git a/data/ui/ide-workbench-header-bar.ui b/data/ui/ide-workbench-header-bar.ui
index 9f1396c..04de8ce 100644
--- a/data/ui/ide-workbench-header-bar.ui
+++ b/data/ui/ide-workbench-header-bar.ui
@@ -5,6 +5,7 @@
     <property name="show-close-button">true</property>
     <child type="title">
       <object class="IdeOmniSearchEntry" id="search_entry">
+        <property name="tooltip-text" translatable="yes">Search for files. Shortcut: CTRL + .</property>
         <property name="hexpand">true</property>
         <property name="margin-end">6</property>
         <property name="margin-start">6</property>
@@ -13,6 +14,7 @@
     </child>
     <child>
       <object class="GtkMenuButton" id="menu_button">
+        <property name="tooltip-text" translatable="yes">Drops down a list of file operations</property>
         <property name="focus-on-click">false</property>
         <property name="visible">true</property>
         <style>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]