[gnome-calculator: 1/2] Added the missing % button in Advanced. Moved some buttons to be able to add the % button accordingl




commit 511ea5f691517e3f8d085c794b95d422c95fffea
Author: dave90dave <dave hulst gmail com>
Date:   Wed Feb 3 18:13:18 2021 +0100

    Added the missing % button in Advanced.
    Moved some buttons to be able to add the % button accordingly.

 src/ui/buttons-advanced.ui | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/src/ui/buttons-advanced.ui b/src/ui/buttons-advanced.ui
index 03a490dd..8f1d0c33 100644
--- a/src/ui/buttons-advanced.ui
+++ b/src/ui/buttons-advanced.ui
@@ -119,8 +119,8 @@
         </child>
       </object>
       <packing>
-        <property name="left_attach">2</property>
-        <property name="top_attach">4</property>
+        <property name="left_attach">4</property>
+        <property name="top_attach">2</property>
       </packing>
     </child>
     <child>
@@ -485,6 +485,23 @@
         <property name="left_attach">1</property>
       </packing>
     </child>
+    <child>
+      <object class="GtkButton" id="calc_percentage_button">
+        <property name="label">%</property>
+        <property name="visible">True</property>
+        <property name="can_focus">True</property>
+        <property name="receives_default">True</property>
+        <property name="use_underline">True</property>
+        <property name="focus_on_click">False</property>
+        <property name="tooltip_text" translatable="yes">Percentage [%]</property>
+        <property name="action_name">cal.insert-general</property>
+        <property name="action_target">'%'</property>
+      </object>
+      <packing>
+        <property name="left_attach">2</property>
+        <property name="top_attach">4</property>
+      </packing>
+    </child>
     <child>
       <object class="GtkButton" id="calc_exponential_button">
         <property name="visible">True</property>
@@ -602,9 +619,9 @@
         </child>
       </object>
       <packing>
-        <property name="left_attach">4</property>
+        <property name="left_attach">5</property>
         <property name="top_attach">2</property>
-        <property name="width">2</property>
+        <property name="width">1</property>
       </packing>
     </child>
     <child>


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