Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mate-calc.desktop.in: Add missing Keywords.
|
|
|
|
|
|
cppcheck --enable=unusedFunction .
[src/mp-binary.c:165]: (style) The function 'mp_mask' is never used.
|
|
Fixes error in arch build:
*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version 0.19 but the autoconf macros are from gettext version 0.20
|
|
|
|
|
|
|
|
This reverts commit 87d647ad3be67c033dbb6aa80cfcdd4cbce3a42d.
gettext needs those files to install .mo files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
So that z = re(z) + im(z) will be displayed with the "+" in scientific notation.
In mp_serializer_to_string: DISPLAY_FORMAT_AUTOMATIC I removed the workaround for this issue, so
big (or small) imaginary numbers will be displayed in scientific notation again
(as against fixed notation before) automatically.
|
|
|
|
|
|
|
|
|
|
Reported by translators
|
|
It was necessary to change the test() function as well, in order to have
variable trailing_digits size. Otherwise most constants would be shown as zero.
So there is a "#define test(X, Y, Z) Test(X, Y, Z, 9)". Now test() works
with trailing_digits size 9, and Test() with a variable trailing_digit size.
|
|
values in math-buttons.c
On branch physical_constants
Your branch is up-to-date with 'origin/physical_constants'.
Changes to be committed:
modified: src/mp-equation.c
|
|
This adds unit tooltips to the const menu which appear when hovering over
a specific constant with the mouse.
Changes to be committed:
modified: math-buttons.c
|
|
|
|
This adds some fundamental physical constants:
- Velocity of Light "c₀", 299,792,458 m/s
- Magnetic constant, "μ₀", 1.2566370614×10⁻ N/A²
- Electric constant, "ε₀", 8.85418782×10⁻¹² s⁴A²/m³kg
- Newtonian constant of gravitation, "G", 6.67408×10⁻¹¹ m³/(s²kg)
- Planck constant, "h", 6.62607004×10⁻³⁴ m²kg/s
- Elementary charge, "e", 1.6021766208(98)×10⁻¹⁹ C
- Electron mass, "mₑ", 9.10938356×10⁻³¹ kg
- Proton mass, "mₚ", 1.672621898(21)×10⁻²⁷ kg
- Avogrado constant, "Nₐ", 6.02214086×10²³ mol⁻¹
They are taken from https://en.wikipedia.org/wiki/Physical_constant#Universal_constants
To insert them one would enter the corresponding symbol or use the gui.
They are set to a MPNumber from string.
|
|
|
|
|
|
This gives the result (=) button a theme defined colour. Currently has
effects in Menta theme. Saw this on gnome-calculator.
|
|
.ui files are combined into a binary resource bundle, and
they are marked as compressed, so they will be automatically
uncompressed when the resource is used.
REF https://developer.gnome.org/gio/stable/GResource.html
|
|
|
|
Fixes #103
|
|
Fixes cppcheck warning:
[src/math-buttons.c:513] -> [src/math-buttons.c:514]: (warning) Identical inner 'return' condition is always true.
|
|
Fixes https://github.com/mate-desktop/mate-calc/issues/100
based in gnome-calculator commit:
https://gitlab.gnome.org/GNOME/gnome-calculator/commit/6eb0f2b5e6df456a97a796b35d811376a69679e0
|
|
in number format: automatic
|
|
This reverts commit 1f84e1918c1f1ca57fa63f72b7c1f39c5c4563ac.
|
|
|
|
'g_path_get_basename' needs to be freed
Fix memory leak detected by valgrind:
valgrind --leak-check=full mate-calc
==17452== 10 bytes in 1 blocks are definitely lost in loss record 501 of 10,243
==17452== at 0x483577F: malloc (vg_replace_malloc.c:299)
==17452== by 0x5657900: g_malloc (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.5800.3)
==17452== by 0x563E84A: g_path_get_basename (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.5800.3)
==17452== by 0x11A9E3: main (in /usr/bin/mate-calc)
|
|
Fixes cppcheck warning:
[src/math-buttons.c:391]: (error) Shifting signed 64-bit value by 63 bits is undefined behaviour
|
|
|
|
|
|
|
|
|