[gnome-calculator: 1/2] Add tooltip for bits in programming mode
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator: 1/2] Add tooltip for bits in programming mode
- Date: Thu, 4 Jun 2020 14:15:51 +0000 (UTC)
commit bec10822e3f69172da630f32fb0055e78673bc56
Author: Olliver Schinagl <oliver schinagl nl>
Date: Mon Mar 9 09:10:32 2020 +0100
Add tooltip for bits in programming mode
For slightly more dyslectic people having to count out the bits is quite
difficult. The lower labels help a little, but not enough. Further more,
adding labels for all the bits just becomes noisy, ugly and also hard to
read.
Instead, simply enable tooltips for all digits, so we can see what bit
relates to what bit number.
Note, that the labels and id's are counting in the opposite direction as
what where expected!
Signed-off-by: Olliver Schinagl <oliver schinagl nl>
src/buttons-programming.ui | 64 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
---
diff --git a/src/buttons-programming.ui b/src/buttons-programming.ui
index f8e33b62..f75fdd04 100644
--- a/src/buttons-programming.ui
+++ b/src/buttons-programming.ui
@@ -54,6 +54,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">0</property>
+ <property name="tooltip_text" translatable="no">63</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -70,6 +71,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">1</property>
+ <property name="tooltip_text" translatable="no">62</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -86,6 +88,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">2</property>
+ <property name="tooltip_text" translatable="no">61</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -103,6 +106,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">3</property>
+ <property name="tooltip_text" translatable="no">60</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -120,6 +124,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">4</property>
+ <property name="tooltip_text" translatable="no">59</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -136,6 +141,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">5</property>
+ <property name="tooltip_text" translatable="no">58</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -152,6 +158,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">6</property>
+ <property name="tooltip_text" translatable="no">57</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -169,6 +176,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">7</property>
+ <property name="tooltip_text" translatable="no">56</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -185,6 +193,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">8</property>
+ <property name="tooltip_text" translatable="no">55</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -201,6 +210,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">9</property>
+ <property name="tooltip_text" translatable="no">54</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -217,6 +227,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">10</property>
+ <property name="tooltip_text" translatable="no">53</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -234,6 +245,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">11</property>
+ <property name="tooltip_text" translatable="no">52</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -250,6 +262,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">12</property>
+ <property name="tooltip_text" translatable="no">51</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -266,6 +279,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">13</property>
+ <property name="tooltip_text" translatable="no">50</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -282,6 +296,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">14</property>
+ <property name="tooltip_text" translatable="no">49</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -299,6 +314,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">15</property>
+ <property name="tooltip_text" translatable="no">48</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -315,6 +331,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">31</property>
+ <property name="tooltip_text" translatable="no">32</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -331,6 +348,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">30</property>
+ <property name="tooltip_text" translatable="no">33</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -347,6 +365,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">29</property>
+ <property name="tooltip_text" translatable="no">34</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -363,6 +382,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">28</property>
+ <property name="tooltip_text" translatable="no">35</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -380,6 +400,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">27</property>
+ <property name="tooltip_text" translatable="no">36</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -396,6 +417,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">26</property>
+ <property name="tooltip_text" translatable="no">37</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -412,6 +434,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">25</property>
+ <property name="tooltip_text" translatable="no">38</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -428,6 +451,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">24</property>
+ <property name="tooltip_text" translatable="no">39</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -445,6 +469,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">23</property>
+ <property name="tooltip_text" translatable="no">40</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -461,6 +486,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">22</property>
+ <property name="tooltip_text" translatable="no">41</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -477,6 +503,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">21</property>
+ <property name="tooltip_text" translatable="no">42</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -493,6 +520,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">20</property>
+ <property name="tooltip_text" translatable="no">43</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -510,6 +538,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">19</property>
+ <property name="tooltip_text" translatable="no">44</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -526,6 +555,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">18</property>
+ <property name="tooltip_text" translatable="no">45</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -542,6 +572,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">17</property>
+ <property name="tooltip_text" translatable="no">46</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -558,6 +589,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">16</property>
+ <property name="tooltip_text" translatable="no">47</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -642,6 +674,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">32</property>
+ <property name="tooltip_text" translatable="no">31</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -659,6 +692,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">33</property>
+ <property name="tooltip_text" translatable="no">30</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -676,6 +710,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">34</property>
+ <property name="tooltip_text" translatable="no">29</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -694,6 +729,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">35</property>
+ <property name="tooltip_text" translatable="no">28</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -711,6 +747,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">36</property>
+ <property name="tooltip_text" translatable="no">27</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -728,6 +765,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">37</property>
+ <property name="tooltip_text" translatable="no">26</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -745,6 +783,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">38</property>
+ <property name="tooltip_text" translatable="no">25</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -763,6 +802,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">39</property>
+ <property name="tooltip_text" translatable="no">24</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -780,6 +820,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">40</property>
+ <property name="tooltip_text" translatable="no">23</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -797,6 +838,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">41</property>
+ <property name="tooltip_text" translatable="no">22</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -814,6 +856,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">42</property>
+ <property name="tooltip_text" translatable="no">21</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -832,6 +875,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">43</property>
+ <property name="tooltip_text" translatable="no">20</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -849,6 +893,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">44</property>
+ <property name="tooltip_text" translatable="no">19</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -866,6 +911,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">45</property>
+ <property name="tooltip_text" translatable="no">18</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -883,6 +929,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">46</property>
+ <property name="tooltip_text" translatable="no">17</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -901,6 +948,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">47</property>
+ <property name="tooltip_text" translatable="no">16</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -918,6 +966,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">48</property>
+ <property name="tooltip_text" translatable="no">15</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -935,6 +984,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">49</property>
+ <property name="tooltip_text" translatable="no">14</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -952,6 +1002,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">50</property>
+ <property name="tooltip_text" translatable="no">13</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -970,6 +1021,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">51</property>
+ <property name="tooltip_text" translatable="no">12</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -987,6 +1039,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">52</property>
+ <property name="tooltip_text" translatable="no">11</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -1004,6 +1057,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">53</property>
+ <property name="tooltip_text" translatable="no">10</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -1021,6 +1075,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">54</property>
+ <property name="tooltip_text" translatable="no">9</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -1039,6 +1094,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">55</property>
+ <property name="tooltip_text" translatable="no">8</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -1056,6 +1112,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">56</property>
+ <property name="tooltip_text" translatable="no">7</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -1073,6 +1130,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">57</property>
+ <property name="tooltip_text" translatable="no">6</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -1090,6 +1148,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">58</property>
+ <property name="tooltip_text" translatable="no">5</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -1108,6 +1167,7 @@
<property name="margin_end">10</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">59</property>
+ <property name="tooltip_text" translatable="no">4</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -1125,6 +1185,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">60</property>
+ <property name="tooltip_text" translatable="no">3</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -1142,6 +1203,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">61</property>
+ <property name="tooltip_text" translatable="no">2</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -1159,6 +1221,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">62</property>
+ <property name="tooltip_text" translatable="no">1</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
@@ -1176,6 +1239,7 @@
<property name="can_focus">False</property>
<property name="action_name">cal.toggle-bit</property>
<property name="action_target">63</property>
+ <property name="tooltip_text" translatable="no">0</property>
<style>
<class name="bit-toggle-button" />
<class name="flat" />
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]