[gtranslator] UI fixes & menu in main window



commit 68194b0769b7f4569d782085528b4c9ea0ee0893
Author: Daniel García Moreno <danigm wadobo com>
Date:   Tue Sep 18 19:32:13 2018 +0200

    UI fixes & menu in main window
    
     * Removed the double border for some widgets.

 src/gtr-context.ui       |  3 +-
 src/gtr-message-table.ui |  2 +-
 src/gtr-notebook.ui      |  4 +-
 src/gtr-projects.ui      | 99 +++++++++++++++++++++++++++++++++++++++++++++++-
 src/gtr-tab.ui           |  2 +
 5 files changed, 105 insertions(+), 5 deletions(-)
---
diff --git a/src/gtr-context.ui b/src/gtr-context.ui
index f11fb69e..a93b4d71 100644
--- a/src/gtr-context.ui
+++ b/src/gtr-context.ui
@@ -7,6 +7,7 @@
     <property name="visible">True</property>
     <property name="can_focus">False</property>
     <property name="orientation">vertical</property>
+    <property name="spacing">2</property>
     <child>
       <object class="GtkBox" id="translation_memory_box">
         <property name="visible">True</property>
@@ -23,7 +24,7 @@
       <object class="GtkScrolledWindow" id="sw">
         <property name="visible">True</property>
         <property name="can_focus">True</property>
-        <property name="shadow_type">in</property>
+        <property name="shadow_type">None</property>
         <child>
           <object class="GtkTextView" id="context">
             <property name="visible">True</property>
diff --git a/src/gtr-message-table.ui b/src/gtr-message-table.ui
index 53a22eac..79ad423d 100644
--- a/src/gtr-message-table.ui
+++ b/src/gtr-message-table.ui
@@ -10,7 +10,7 @@
       <object class="GtkScrolledWindow" id="scrolledwindow1">
         <property name="visible">True</property>
         <property name="can_focus">True</property>
-        <property name="shadow_type">in</property>
+        <property name="shadow_type">None</property>
         <child>
           <object class="GtkTreeView" id="treeview">
             <property name="visible">True</property>
diff --git a/src/gtr-notebook.ui b/src/gtr-notebook.ui
index f3bdc849..3e10b63e 100644
--- a/src/gtr-notebook.ui
+++ b/src/gtr-notebook.ui
@@ -275,7 +275,7 @@
             <property name="visible">True</property>
             <property name="can_focus">True</property>
             <property name="receives_default">True</property>
-            <property name="tooltip_text" translatable="yes">Previous message (&lt;Alt&gt;🡄)</property>
+            <property name="tooltip_text" translatable="yes">Previous message (&lt;Alt&gt;&lt;-)</property>
             <property name="action_name">app.prev</property>
             <child>
               <object class="GtkImage">
@@ -297,7 +297,7 @@
             <property name="visible">True</property>
             <property name="can_focus">True</property>
             <property name="receives_default">True</property>
-            <property name="tooltip_text" translatable="yes">Next message (&lt;Alt&gt;🡆)</property>
+            <property name="tooltip_text" translatable="yes">Next message (&lt;Alt&gt;-&gt;)</property>
             <property name="action_name">app.next</property>
             <child>
               <object class="GtkImage">
diff --git a/src/gtr-projects.ui b/src/gtr-projects.ui
index a6e15aac..322ebc63 100644
--- a/src/gtr-projects.ui
+++ b/src/gtr-projects.ui
@@ -63,8 +63,105 @@
         <property name="position">0</property>
       </packing>
     </child>
+    <child>
+      <object class="GtkMenuButton" id="main_menu">
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="receives_default">True</property>
+        <property name="popover">main_menu_popover</property>
+        <child>
+          <object class="GtkImage">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="icon_name">open-menu-symbolic</property>
+          </object>
+        </child>
+        <child internal-child="accessible">
+          <object class="AtkObject" id="main_menu-atkobject">
+            <property name="AtkObject::accessible-name" translatable="yes">Main Menu</property>
+          </object>
+        </child>
+      </object>
+      <packing>
+        <property name="pack_type">end</property>
+        <property name="position">1</property>
+      </packing>
+    </child>
   </object>
 
-</interface>
+  <object class="GtkPopoverMenu" id="main_menu_popover">
+    <property name="can_focus">False</property>
+    <child>
+      <object class="GtkBox">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="margin_left">6</property>
+        <property name="margin_right">6</property>
+        <property name="margin_top">6</property>
+        <property name="margin_bottom">6</property>
+        <property name="orientation">vertical</property>
+        <child>
+          <object class="GtkModelButton" id="pref_button1">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="receives_default">False</property>
+            <property name="action_name">app.preferences</property>
+            <property name="text" translatable="yes">Preferences</property>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkSeparator">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_top">3</property>
+            <property name="margin_bottom">3</property>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">2</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkModelButton" id="pref_button">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="receives_default">False</property>
+            <property name="action_name">app.keybinding</property>
+            <property name="text" translatable="yes">Keybindings</property>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">3</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkModelButton" id="about_button">
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <property name="receives_default">False</property>
+            <property name="action_name">app.about</property>
+            <property name="text" translatable="yes">About</property>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">4</property>
+          </packing>
+        </child>
+      </object>
+      <packing>
+        <property name="submenu">main</property>
+        <property name="position">1</property>
+      </packing>
+    </child>
+  </object>
 
+</interface>
 
diff --git a/src/gtr-tab.ui b/src/gtr-tab.ui
index 98b989d7..39484940 100644
--- a/src/gtr-tab.ui
+++ b/src/gtr-tab.ui
@@ -10,11 +10,13 @@
       <object class="GtkBox" id="hbox">
         <property name="visible">True</property>
         <property name="can_focus">False</property>
+        <property name="spacing">2</property>
         <child>
           <object class="GtkBox" id="vertical_box">
             <property name="visible">True</property>
             <property name="can_focus">False</property>
             <property name="orientation">vertical</property>
+            <property name="spacing">2</property>
             <child>
               <object class="GtrMessageTable" id="message_table">
                 <property name="visible">True</property>


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