gnome-calculator issueshttps://gitlab.gnome.org/GNOME/gnome-calculator/-/issues2024-03-28T04:30:32Zhttps://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/391Feature request: Automatic window resizing on desktop2024-03-28T04:30:32ZCaden MitchellFeature request: Automatic window resizing on desktopI think it would possibly make for a better user experience on desktop if the calculator had pre-defined window sizes for each mode. Basically, the smallest size needed to have full access to all functions, and large enough to display a ...I think it would possibly make for a better user experience on desktop if the calculator had pre-defined window sizes for each mode. Basically, the smallest size needed to have full access to all functions, and large enough to display a healthy amount of information. If the window could animate its dimensions smoothly, that would be a bonus.
This way, users could always anticipate the appropriate dimensions of the calculator, and would never need to fuss with getting it to be the right size, and the program could handle all the resizing for them when switching modes. Personally, I waste a lot of time resizing my window to fit everything and not waste space.
I personally think this should be an opt-out setting in preferences, as I don't think being able to make the calculator bigger or smaller than it needs to be adds any value, but moreso extra steps, padding, and inconvenience. I genuinely hate having to manually resize the calculator every time I switch modes that are functionality and aesthetically better at different dimensions, and feel like it wastes my time. I wish the app would just do it for me, and not let me resize it to sizes that look bad and don't add any real value or utility. That said, I can totally see why some users, (especially developers), may want to have free control of the window, so I think it would be appropriate to have it be a preference to disable automatic window sizing.
Honestly, I really like the macOS calculator for this reason. Even though GNOME's calculator is _far_ superior in many ways, macOS' is nice because I don't need to care about my window size, I can just focus on using the thing for math, and then close it when I'm finished. Not once have I felt the window wasn't big enough, or was too big. The app developer found the best size for me. I never need to even think about what size my window is, or just give up and maximize it, only to waste all my screen space with padding in the process. It is more convenient, easy, and practical for this reason, and in my opinion, makes it a more practical tool for the job when you just need a good calculator.
![Screenshot_from_2024-03-14_03-39-40](/uploads/f14b514b6de210a81b0f6b857451abd3/Screenshot_from_2024-03-14_03-39-40.png)
![Screenshot_from_2024-03-14_03-40-10](/uploads/00f47ee004af0d6003cbdb2261ee8799/Screenshot_from_2024-03-14_03-40-10.png)
![Screenshot_from_2024-03-14_03-40-37](/uploads/0a57efad39e452a815e2a96a18a838f9/Screenshot_from_2024-03-14_03-40-37.png)
![Screenshot_from_2024-03-14_03-40-59](/uploads/f60b0e61a90be1f4379b092845b6055b/Screenshot_from_2024-03-14_03-40-59.png)
![Screenshot_from_2024-03-14_03-41-18](/uploads/9d3c1bd88f1f3831d38f2f6b72f89cee/Screenshot_from_2024-03-14_03-41-18.png)
![Screenshot from 2024-03-14 03-52-41.png](/uploads/d58ffd4928bf695aa75a1342d91ccc3a/Screenshot_from_2024-03-14_03-52-41.png)
Demo from macOS:
![macOS Calculator Demo (AV1 codec)](/uploads/61b45b6095e526d87ca44eaf26642166/macos_calculator_demo.mkv)https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/390Enhancement: Cooking measurements2024-03-28T04:09:42ZCaden MitchellEnhancement: Cooking measurementsI've been in this boat: I'm watching cooking tutorials and I want to convert some measurements. I open GNOME Calculator, go to advanced, enter volume _and_... no cups? No teaspoons... tablespoons?
I'd like to have conversions for standa...I've been in this boat: I'm watching cooking tutorials and I want to convert some measurements. I open GNOME Calculator, go to advanced, enter volume _and_... no cups? No teaspoons... tablespoons?
I'd like to have conversions for standard baking measurements like cups, tablespoons, and teaspoons.
Additionally, instead of just showing eg. 1.9377 cups, it should also have a human readable result by rounding to 1 3/4 cups & 3 tablespoons for instance.https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/389Period button on the numpad does not work.2024-03-04T06:42:07ZCedric SchmeitsPeriod button on the numpad does not work.I have the Dutch language selected. When I want to type 12.78 on the numpad what I get is 1278. If I change the numlock after pressing the 2 from 12.78 and then press the ./Del key I will get a .
Also when I start the application differ...I have the Dutch language selected. When I want to type 12.78 on the numpad what I get is 1278. If I change the numlock after pressing the 2 from 12.78 and then press the ./Del key I will get a .
Also when I start the application differently the numpad just works correctly:
`LC_NUMERIC=en_US.UTF-8 gnome-calculator`
Eventhough I have the dutch language `LANG="nl_NL.UTF-8"` selected, I would like the . key to work when typing numbers.
The version I'm using of gnome-calculator is 46.beta on debian testinghttps://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/386Currency conversion rate source2024-02-21T09:09:20ZPaulCombalCurrency conversion rate sourceHello,
Is it possible to know what the source for the currency conversion is? Is it possible to display it in the app?
This doesn't seem like a lot, but it is!
Thank youHello,
Is it possible to know what the source for the currency conversion is? Is it possible to display it in the app?
This doesn't seem like a lot, but it is!
Thank youhttps://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/384Exponential notation needs parentheses2024-03-27T19:58:57ZJim DavisExponential notation needs parenthesesIn advanced mode on the calculator, when using the x10^y button, answers are incorrect unless placed inside of parens. For example, the following: 6.023x10^23 / 6.023x10^20 gives an answer of 1x10^43. However, the following: (6.023x10^...In advanced mode on the calculator, when using the x10^y button, answers are incorrect unless placed inside of parens. For example, the following: 6.023x10^23 / 6.023x10^20 gives an answer of 1x10^43. However, the following: (6.023x10^23) / (6.023x10^20) gives an answer of 1x10^3.https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/382Financial mode too wide on mobile devices2024-01-29T16:51:24ZbaarkerloungerFinancial mode too wide on mobile devices- Version 45.0.2
- Source: Flathub
- Device: Librem5
- OS: PureOS Byzantium
The financial mode is too wide on mobile devices (see screenshot). All other modes fit correctly.
![image](/uploads/5776fa85e002b8acc9a1152d862d2338/image....- Version 45.0.2
- Source: Flathub
- Device: Librem5
- OS: PureOS Byzantium
The financial mode is too wide on mobile devices (see screenshot). All other modes fit correctly.
![image](/uploads/5776fa85e002b8acc9a1152d862d2338/image.png)https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/38046.alpha fails to compile with gcc 14.x (due to -Wincompatible-pointer-types ...2024-01-24T16:58:27ZTomasz Kłoczko46.alpha fails to compile with gcc 14.x (due to -Wincompatible-pointer-types being an error)Looks like last version build fails with latest gcc 14.x which is now used in fedora rawhide.
<details>
<summary>Build fails with</summary>
```console
[tkloczko@pers-jacek x86_64-redhat-linux-gnu]$ ninja -k 0
[1/32] Compiling C object g...Looks like last version build fails with latest gcc 14.x which is now used in fedora rawhide.
<details>
<summary>Build fails with</summary>
```console
[tkloczko@pers-jacek x86_64-redhat-linux-gnu]$ ninja -k 0
[1/32] Compiling C object gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-expression-container.c.o
FAILED: gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-expression-container.c.o
/usr/bin/gcc -Igcalc/libgcalc-2.so.1.p -Igcalc -I../gcalc -I. -I.. -Ilibmpfr -I../libmpfr -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libsoup-3.0 -I/usr/include/gee-0.8 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -fPIC -pthread -include /home/tkloczko/rpmbuild/BUILD/gnome-calculator-46.alpha/x86_64-redhat-linux-gnu/gcalc/config.h -MD -MQ gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-expression-container.c.o -MF gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-expression-container.c.o.d -o gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-expression-container.c.o -c gcalc/libgcalc-2.so.1.p/gcalc-expression-container.c
../gcalc/gcalc-expression-container.vala: In function ‘gcalc_expression_container_g_list_model_interface_init’:
../gcalc/gcalc-expression-container.vala:24:18: error: assignment to ‘void * (*)(GListModel *, guint)’ {aka ‘void * (*)(struct _GListModel *, unsigned int)’} from incompatible pointer type ‘GObject * (*)(GListModel *, guint)’ {aka ‘struct _GObject * (*)(struct _GListModel *, unsigned int)’} [-Wincompatible-pointer-types]
24 | public class GCalc.ExpressionContainer : Gee.ArrayList<MathExpression>, GLib.ListModel {
| ^
[2/32] Compiling C object gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-calculator.c.o
FAILED: gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-calculator.c.o
/usr/bin/gcc -Igcalc/libgcalc-2.so.1.p -Igcalc -I../gcalc -I. -I.. -Ilibmpfr -I../libmpfr -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libsoup-3.0 -I/usr/include/gee-0.8 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -fPIC -pthread -include /home/tkloczko/rpmbuild/BUILD/gnome-calculator-46.alpha/x86_64-redhat-linux-gnu/gcalc/config.h -MD -MQ gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-calculator.c.o -MF gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-calculator.c.o.d -o gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-calculator.c.o -c gcalc/libgcalc-2.so.1.p/gcalc-calculator.c
../gcalc/gcalc-calculator.vala: In function ‘gcalc_calculator_sqrt’:
../gcalc/gcalc-calculator.vala:67:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
67 | rc.get_complex ().get_real ().val.sqrt (rc.get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala:67:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
67 | rc.get_complex ().get_real ().val.sqrt (rc.get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala: In function ‘gcalc_calculator_pi’:
../gcalc/gcalc-calculator.vala:75:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
75 | rc.get_complex ().get_real ().val.const_pi ();
| ^
../gcalc/gcalc-calculator.vala: In function ‘gcalc_calculator_log2’:
../gcalc/gcalc-calculator.vala:83:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
83 | rc.get_complex ().get_real ().val.const_log2 ();
| ^
../gcalc/gcalc-calculator.vala: In function ‘gcalc_calculator_euler’:
../gcalc/gcalc-calculator.vala:91:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
91 | rc.get_complex ().get_real ().val.const_euler ();
| ^
../gcalc/gcalc-calculator.vala: In function ‘gcalc_calculator_catalan’:
../gcalc/gcalc-calculator.vala:99:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
99 | rc.get_complex ().get_real ().val.const_catalan ();
| ^
../gcalc/gcalc-calculator.vala: In function ‘gcalc_calculator_cos’:
../gcalc/gcalc-calculator.vala:142:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
142 | rc.get_complex ().get_real ().val.cos (a.get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala:142:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
142 | rc.get_complex ().get_real ().val.cos (a.get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala: In function ‘gcalc_calculator_sin’:
../gcalc/gcalc-calculator.vala:155:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
155 | rc.get_complex ().get_real ().val.sin (a.get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala:155:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
155 | rc.get_complex ().get_real ().val.sin (a.get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala: In function ‘gcalc_calculator_tan’:
../gcalc/gcalc-calculator.vala:168:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
168 | rc.get_complex ().get_real ().val.tan (a.get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala:168:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
168 | rc.get_complex ().get_real ().val.tan (a.get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala: In function ‘gcalc_calculator_acos’:
../gcalc/gcalc-calculator.vala:180:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
180 | rc.get_complex ().get_real ().val.acos (((Constant) c1).get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala:180:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
180 | rc.get_complex ().get_real ().val.acos (((Constant) c1).get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala: In function ‘gcalc_calculator_asin’:
../gcalc/gcalc-calculator.vala:197:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
197 | rc.get_complex ().get_real ().val.acos (((Constant) c1).get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala:197:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
197 | rc.get_complex ().get_real ().val.acos (((Constant) c1).get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala: In function ‘gcalc_calculator_atan’:
../gcalc/gcalc-calculator.vala:214:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
214 | rc.get_complex ().get_real ().val.atan (((Constant) c1).get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala:214:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
214 | rc.get_complex ().get_real ().val.atan (((Constant) c1).get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala: In function ‘gcalc_calculator_log10’:
../gcalc/gcalc-calculator.vala:227:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
227 | rc.get_complex ().get_real ().val.log10 (((Constant) c1).get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala:227:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
227 | rc.get_complex ().get_real ().val.log10 (((Constant) c1).get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala: In function ‘gcalc_calculator_exp’:
../gcalc/gcalc-calculator.vala:235:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
235 | rc.get_complex ().get_real ().val.exp (((Constant) c1).get_complex ().get_real ().val);
| ^
../gcalc/gcalc-calculator.vala:235:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
235 | rc.get_complex ().get_real ().val.exp (((Constant) c1).get_complex ().get_real ().val);
| ^
[3/32] Compiling C object gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-constant.c.o
FAILED: gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-constant.c.o
/usr/bin/gcc -Igcalc/libgcalc-2.so.1.p -Igcalc -I../gcalc -I. -I.. -Ilibmpfr -I../libmpfr -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libsoup-3.0 -I/usr/include/gee-0.8 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -fPIC -pthread -include /home/tkloczko/rpmbuild/BUILD/gnome-calculator-46.alpha/x86_64-redhat-linux-gnu/gcalc/config.h -MD -MQ gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-constant.c.o -MF gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-constant.c.o.d -o gcalc/libgcalc-2.so.1.p/meson-generated_gcalc-constant.c.o -c gcalc/libgcalc-2.so.1.p/gcalc-constant.c
mpc.vapi: In function ‘mpc_get_real_double’:
mpc.vapi:127:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
mpc.vapi: In function ‘mpc_get_imag_double’:
mpc.vapi:132:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
../gcalc/gcalc-constant.vala: In function ‘gcalc_constant_real_x’:
../gcalc/gcalc-constant.vala:149:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
149 | rc.get_complex ().get_real ().val.set (_complex.get_real ().val);
| ^
../gcalc/gcalc-constant.vala:149:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
149 | rc.get_complex ().get_real ().val.set (_complex.get_real ().val);
| ^
../gcalc/gcalc-constant.vala: In function ‘gcalc_constant_real_y’:
../gcalc/gcalc-constant.vala:154:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
154 | rc.get_complex ().get_real ().val.set (_complex.get_real ().val);
| ^
../gcalc/gcalc-constant.vala:154:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
154 | rc.get_complex ().get_real ().val.set (_complex.get_real ().val);
| ^
[4/32] Compiling C object src/gnome-calculator.p/meson-generated_math-variable-popover.c.o
FAILED: src/gnome-calculator.p/meson-generated_math-variable-popover.c.o
/usr/bin/gcc -Isrc/gnome-calculator.p -Isrc -I../src -I. -I.. -Ilib -I../lib -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gtksourceview-5 -I/usr/include/libadwaita-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include config.h -MD -MQ src/gnome-calculator.p/meson-generated_math-variable-popover.c.o -MF src/gnome-calculator.p/meson-generated_math-variable-popover.c.o.d -o src/gnome-calculator.p/meson-generated_math-variable-popover.c.o -c src/gnome-calculator.p/math-variable-popover.c
../src/math-variable-popover.vala: In function ‘math_variable_popover_construct’:
../src/math-variable-popover.vala:49:56: error: passing argument 3 of ‘gtk_list_box_bind_model’ from incompatible pointer type [-Wincompatible-pointer-types]
49 | variable_list.bind_model (model, (variable) => make_item_row (variable as MathVariable));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| GtkWidget * (*)(GObject *, void *) {aka struct _GtkWidget * (*)(struct _GObject *, void *)}
In file included from /usr/include/gtk-4.0/gtk/gtk.h:177,
from /usr/include/gtksourceview-5/gtksourceview/gtksourcebuffer.h:30,
from /usr/include/gtksourceview-5/gtksourceview/gtksource.h:23,
from lib/calculator.h:11,
from src/gnome-calculator.p/math-variable-popover.c:18:
/usr/include/gtk-4.0/gtk/gtklistbox.h:267:89: note: expected ‘GtkListBoxCreateWidgetFunc’ {aka ‘struct _GtkWidget * (*)(void *, void *)’} but argument is of type ‘GtkWidget * (*)(GObject *, void *)’ {aka ‘struct _GtkWidget * (*)(struct _GObject *, void *)’}
267 | GtkListBoxCreateWidgetFunc create_widget_func,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../src/math-variable-popover.vala: In function ‘_math_variable_popover_store_variable_cb_gtk_button_clicked’:
../src/math-variable-popover.vala:34:72: error: passing argument 2 of ‘math_variable_popover_store_variable_cb’ from incompatible pointer type [-Wincompatible-pointer-types]
34 | public class MathVariablePopover : MathPopover<MathVariable>
| ^
| |
| GtkButton * {aka struct _GtkButton *}
math-variable-popover.c:693:53: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkButton *’ {aka ‘struct _GtkButton *’}
[5/32] Compiling C object src/gnome-calculator.p/meson-generated_math-function-popover.c.o
FAILED: src/gnome-calculator.p/meson-generated_math-function-popover.c.o
/usr/bin/gcc -Isrc/gnome-calculator.p -Isrc -I../src -I. -I.. -Ilib -I../lib -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gtksourceview-5 -I/usr/include/libadwaita-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include config.h -MD -MQ src/gnome-calculator.p/meson-generated_math-function-popover.c.o -MF src/gnome-calculator.p/meson-generated_math-function-popover.c.o.d -o src/gnome-calculator.p/meson-generated_math-function-popover.c.o -c src/gnome-calculator.p/math-function-popover.c
../src/math-function-popover.vala: In function ‘math_function_popover_construct’:
../src/math-function-popover.vala:36:56: error: passing argument 3 of ‘gtk_list_box_bind_model’ from incompatible pointer type [-Wincompatible-pointer-types]
36 | function_list.bind_model (model, (item) => make_item_row(item as MathFunction));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| GtkWidget * (*)(GObject *, void *) {aka struct _GtkWidget * (*)(struct _GObject *, void *)}
In file included from /usr/include/gtk-4.0/gtk/gtk.h:177,
from src/gnome-calculator.p/math-function-popover.c:16:
/usr/include/gtk-4.0/gtk/gtklistbox.h:267:89: note: expected ‘GtkListBoxCreateWidgetFunc’ {aka ‘struct _GtkWidget * (*)(void *, void *)’} but argument is of type ‘GtkWidget * (*)(GObject *, void *)’ {aka ‘struct _GtkWidget * (*)(struct _GObject *, void *)’}
267 | GtkListBoxCreateWidgetFunc create_widget_func,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../src/math-function-popover.vala: In function ‘_math_function_popover_add_function_cb_gtk_button_clicked’:
../src/math-function-popover.vala:16:70: error: passing argument 2 of ‘math_function_popover_add_function_cb’ from incompatible pointer type [-Wincompatible-pointer-types]
16 | public class MathFunctionPopover : MathPopover<MathFunction>
| ^
| |
| GtkButton * {aka struct _GtkButton *}
math-function-popover.c:1181:51: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkButton *’ {aka ‘struct _GtkButton *’}
[6/32] Compiling C object src/gnome-calculator.p/meson-generated_math-popover.c.o
FAILED: src/gnome-calculator.p/meson-generated_math-popover.c.o
/usr/bin/gcc -Isrc/gnome-calculator.p -Isrc -I../src -I. -I.. -Ilib -I../lib -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gtksourceview-5 -I/usr/include/libadwaita-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include config.h -MD -MQ src/gnome-calculator.p/meson-generated_math-popover.c.o -MF src/gnome-calculator.p/meson-generated_math-popover.c.o.d -o src/gnome-calculator.p/meson-generated_math-popover.c.o -c src/gnome-calculator.p/math-popover.c
../src/math-popover.vala: In function ‘_math_popover_save_function_cb_gtk_button_clicked’:
../src/math-popover.vala:86:54: error: passing argument 2 of ‘math_popover_save_function_cb’ from incompatible pointer type [-Wincompatible-pointer-types]
86 | button.clicked.connect (save_function_cb);
| ^
| |
| GtkButton * {aka struct _GtkButton *}
src/gnome-calculator.p/math-popover.c:155:48: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkButton *’ {aka ‘struct _GtkButton *’}
155 | GtkWidget* widget);
| ~~~~~~~~~~~^~~~~~
../src/math-popover.vala: In function ‘_math_popover_delete_function_cb_gtk_button_clicked’:
../src/math-popover.vala:94:56: error: passing argument 2 of ‘math_popover_delete_function_cb’ from incompatible pointer type [-Wincompatible-pointer-types]
94 | button.clicked.connect (delete_function_cb);
| ^
| |
| GtkButton * {aka struct _GtkButton *}
src/gnome-calculator.p/math-popover.c:159:50: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkButton *’ {aka ‘struct _GtkButton *’}
159 | GtkWidget* widget);
| ~~~~~~~~~~~^~~~~~
[7/32] Compiling C object src/gnome-calculator.p/meson-generated_math-display.c.o
FAILED: src/gnome-calculator.p/meson-generated_math-display.c.o
/usr/bin/gcc -Isrc/gnome-calculator.p -Isrc -I../src -I. -I.. -Ilib -I../lib -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gtksourceview-5 -I/usr/include/libadwaita-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include config.h -MD -MQ src/gnome-calculator.p/meson-generated_math-display.c.o -MF src/gnome-calculator.p/meson-generated_math-display.c.o.d -o src/gnome-calculator.p/meson-generated_math-display.c.o -c src/gnome-calculator.p/math-display.c
../src/math-display.vala: In function ‘completion_provider_gtk_source_completion_provider_interface_init’:
../src/math-display.vala:498:20: error: assignment to ‘gboolean (*)(GtkSourceCompletionProvider *, const GtkTextIter *, gunichar)’ {aka ‘int (*)(struct _GtkSourceCompletionProvider *, const struct _GtkTextIter *, unsigned int)’} from incompatible pointer type ‘gboolean (*)(GtkSourceCompletionProvider *, GtkTextIter *, gunichar)’ {aka ‘int (*)(struct _GtkSourceCompletionProvider *, struct _GtkTextIter *, unsigned int)’} [-Wincompatible-pointer-types]
498 | public abstract class CompletionProvider : GLib.Object, GtkSource.CompletionProvider
| ^
[8/32] Compiling C object src/gnome-calculator.p/meson-generated_math-preferences.c.o
FAILED: src/gnome-calculator.p/meson-generated_math-preferences.c.o
/usr/bin/gcc -Isrc/gnome-calculator.p -Isrc -I../src -I. -I.. -Ilib -I../lib -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gtksourceview-5 -I/usr/include/libadwaita-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include config.h -MD -MQ src/gnome-calculator.p/meson-generated_math-preferences.c.o -MF src/gnome-calculator.p/meson-generated_math-preferences.c.o.d -o src/gnome-calculator.p/meson-generated_math-preferences.c.o -c src/gnome-calculator.p/math-preferences.c
../src/math-preferences.vala: In function ‘math_preferences_dialog_constructor’:
../src/math-preferences.vala:63:26: error: passing argument 1 of ‘gtk_expression_unref’ from incompatible pointer type [-Wincompatible-pointer-types]
63 | expression = new Gtk.CClosureExpression (typeof (string),
| ^~~~~~~~~~
| |
| GtkCClosureExpression * {aka struct _GtkCClosureExpression *}
src/gnome-calculator.p/math-preferences.c:68:91: note: in definition of macro ‘_gtk_expression_unref0’
68 | #define _gtk_expression_unref0(var) ((var == NULL) ? NULL : (var = (gtk_expression_unref (var), NULL)))
| ^~~
In file included from /usr/include/gtk-4.0/gtk/gtkboolfilter.h:26,
from /usr/include/gtk-4.0/gtk/gtk.h:53,
from /usr/include/libadwaita-1/adwaita.h:9,
from src/gnome-calculator.p/math-preferences.c:14:
/usr/include/gtk-4.0/gtk/gtkexpression.h:51:98: note: expected ‘GtkExpression *’ {aka ‘struct _GtkExpression *’} but argument is of type ‘GtkCClosureExpression *’ {aka ‘struct _GtkCClosureExpression *’}
51 | void gtk_expression_unref (GtkExpression *self);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../src/math-preferences.vala:71:26: error: passing argument 1 of ‘gtk_expression_unref’ from incompatible pointer type [-Wincompatible-pointer-types]
71 | expression = new Gtk.CClosureExpression (typeof (string),
| ^~~~~~~~~~
| |
| GtkCClosureExpression * {aka struct _GtkCClosureExpression *}
src/gnome-calculator.p/math-preferences.c:68:91: note: in definition of macro ‘_gtk_expression_unref0’
68 | #define _gtk_expression_unref0(var) ((var == NULL) ? NULL : (var = (gtk_expression_unref (var), NULL)))
| ^~~
/usr/include/gtk-4.0/gtk/gtkexpression.h:51:98: note: expected ‘GtkExpression *’ {aka ‘struct _GtkExpression *’} but argument is of type ‘GtkCClosureExpression *’ {aka ‘struct _GtkCClosureExpression *’}
51 | void gtk_expression_unref (GtkExpression *self);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../src/math-preferences.vala:50:26: error: passing argument 1 of ‘gtk_expression_unref’ from incompatible pointer type [-Wincompatible-pointer-types]
50 | construct
| ^
| |
| GtkCClosureExpression * {aka struct _GtkCClosureExpression *}
src/gnome-calculator.p/math-preferences.c:68:91: note: in definition of macro ‘_gtk_expression_unref0’
68 | #define _gtk_expression_unref0(var) ((var == NULL) ? NULL : (var = (gtk_expression_unref (var), NULL)))
| ^~~
/usr/include/gtk-4.0/gtk/gtkexpression.h:51:98: note: expected ‘GtkExpression *’ {aka ‘struct _GtkExpression *’} but argument is of type ‘GtkCClosureExpression *’ {aka ‘struct _GtkCClosureExpression *’}
51 | void gtk_expression_unref (GtkExpression *self);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
[9/32] Compiling C object src/gnome-calculator.p/meson-generated_gnome-calculator.c.o
FAILED: src/gnome-calculator.p/meson-generated_gnome-calculator.c.o
/usr/bin/gcc -Isrc/gnome-calculator.p -Isrc -I../src -I. -I.. -Ilib -I../lib -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gtksourceview-5 -I/usr/include/libadwaita-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include config.h -MD -MQ src/gnome-calculator.p/meson-generated_gnome-calculator.c.o -MF src/gnome-calculator.p/meson-generated_gnome-calculator.c.o.d -o src/gnome-calculator.p/meson-generated_gnome-calculator.c.o -c src/gnome-calculator.p/gnome-calculator.c
../src/gnome-calculator.vala: In function ‘calculator_create_new_window’:
../src/gnome-calculator.vala:90:84: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
90 | set_accels_for_action ("win.mode::basic", {"<control><alt>B"});
| ^
| |
| gchar ** {aka char **}
In file included from /usr/include/gtk-4.0/gtk/gtkwindow.h:32,
from /usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29,
from /usr/include/gtk-4.0/gtk/gtk.h:33,
from /usr/include/libadwaita-1/adwaita.h:9,
from src/gnome-calculator.p/gnome-calculator.c:15:
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:91:87: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
91 | set_accels_for_action ("win.mode::advanced", {"<control><alt>A"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:92:88: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
92 | set_accels_for_action ("win.mode::financial", {"<control><alt>F"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:93:90: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
93 | set_accels_for_action ("win.mode::programming", {"<control><alt>P"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:94:87: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
94 | set_accels_for_action ("win.mode::keyboard", {"<control><alt>K", "<control><alt>T"});
| ^~~~~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:95:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
95 | set_accels_for_action ("win.copy", {"<control>C"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:96:78: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
96 | set_accels_for_action ("win.paste", {"<control>V"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:97:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
97 | set_accels_for_action ("win.undo", {"<control>Z"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:98:78: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
98 | set_accels_for_action ("win.close", {"<control>W"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:99:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
99 | set_accels_for_action ("win.redo", {"<control><shift>Z"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:100:78: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
100 | set_accels_for_action ("win.clear", {"<Primary>Escape"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:102:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
102 | set_accels_for_action ("app.quit", {"<control>Q"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:103:83: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
103 | set_accels_for_action ("app.new-window", {"<control>N"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:104:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
104 | set_accels_for_action ("app.help", {"F1"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:105:84: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
105 | set_accels_for_action ("app.preferences", {"<control>comma"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala:106:82: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
106 | set_accels_for_action ("app.shortcuts", {"<control>question"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-calculator.vala: In function ‘calculator_about_cb’:
../src/gnome-calculator.vala:300:44: error: passing argument 2 of ‘adw_about_window_set_developers’ from incompatible pointer type [-Wincompatible-pointer-types]
300 | var about = new Adw.AboutWindow () {
| ^
| |
| gchar ** {aka char **}
In file included from /usr/include/libadwaita-1/adwaita.h:24:
/usr/include/libadwaita-1/adw-about-window.h:113:71: note: expected ‘const char **’ but argument is of type ‘gchar **’ {aka ‘char **’}
113 | const char **developers);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~
../src/gnome-calculator.vala:300:45: error: passing argument 2 of ‘adw_about_window_set_documenters’ from incompatible pointer type [-Wincompatible-pointer-types]
300 | var about = new Adw.AboutWindow () {
| ^
| |
| gchar ** {aka char **}
/usr/include/libadwaita-1/adw-about-window.h:131:72: note: expected ‘const char **’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char **documenters);
| ~~~~~~~~~~~~~~~~~^~~~~~~~~~~
[10/32] Compiling C object src/gnome-calculator.p/meson-generated_math-converter.c.o
FAILED: src/gnome-calculator.p/meson-generated_math-converter.c.o
/usr/bin/gcc -Isrc/gnome-calculator.p -Isrc -I../src -I. -I.. -Ilib -I../lib -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gtksourceview-5 -I/usr/include/libadwaita-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include config.h -MD -MQ src/gnome-calculator.p/meson-generated_math-converter.c.o -MF src/gnome-calculator.p/meson-generated_math-converter.c.o.d -o src/gnome-calculator.p/meson-generated_math-converter.c.o -c src/gnome-calculator.p/math-converter.c
../src/math-converter.vala: In function ‘math_converter_build_category_model’:
../src/math-converter.vala:64:26: error: passing argument 1 of ‘gtk_expression_unref’ from incompatible pointer type [-Wincompatible-pointer-types]
64 | private void build_category_model () {
| ^~~~~~~~~~
| |
| GtkPropertyExpression * {aka struct _GtkPropertyExpression *}
src/gnome-calculator.p/math-converter.c:53:91: note: in definition of macro ‘_gtk_expression_unref0’
53 | #define _gtk_expression_unref0(var) ((var == NULL) ? NULL : (var = (gtk_expression_unref (var), NULL)))
| ^~~
In file included from /usr/include/gtk-4.0/gtk/gtkboolfilter.h:26,
from /usr/include/gtk-4.0/gtk/gtk.h:53,
from src/gnome-calculator.p/math-converter.c:14:
/usr/include/gtk-4.0/gtk/gtkexpression.h:51:98: note: expected ‘GtkExpression *’ {aka ‘struct _GtkExpression *’} but argument is of type ‘GtkPropertyExpression *’ {aka ‘struct _GtkPropertyExpression *’}
51 | void gtk_expression_unref (GtkExpression *self);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../src/math-converter.vala: In function ‘math_converter_build_units_model’:
../src/math-converter.vala:156:26: error: passing argument 1 of ‘gtk_expression_unref’ from incompatible pointer type [-Wincompatible-pointer-types]
156 | private void build_units_model ()
| ^~~~~~~~~~
| |
| GtkPropertyExpression * {aka struct _GtkPropertyExpression *}
src/gnome-calculator.p/math-converter.c:53:91: note: in definition of macro ‘_gtk_expression_unref0’
53 | #define _gtk_expression_unref0(var) ((var == NULL) ? NULL : (var = (gtk_expression_unref (var), NULL)))
| ^~~
/usr/include/gtk-4.0/gtk/gtkexpression.h:51:98: note: expected ‘GtkExpression *’ {aka ‘struct _GtkExpression *’} but argument is of type ‘GtkPropertyExpression *’ {aka ‘struct _GtkPropertyExpression *’}
51 | void gtk_expression_unref (GtkExpression *self);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
[11/32] Compiling C object lib/libcalculator.a.p/meson-generated_number.c.o
FAILED: lib/libcalculator.a.p/meson-generated_number.c.o
/usr/bin/gcc -Ilib/libcalculator.a.p -Ilib -I../lib -I. -I.. -Ilibmpfr -I../libmpfr -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gtksourceview-5 -I/usr/include/libadwaita-1 -I/usr/include/libsoup-3.0 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -fPIC -pthread -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include config.h -MD -MQ lib/libcalculator.a.p/meson-generated_number.c.o -MF lib/libcalculator.a.p/meson-generated_number.c.o.d -o lib/libcalculator.a.p/meson-generated_number.c.o -c lib/libcalculator.a.p/number.c
../lib/number.vala: In function ‘number_construct_complex’:
../lib/number.vala:89:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
89 | num.set_mpreal (r.num.get_real ().val, i.num.get_real ().val);
| ^
../lib/number.vala:89:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
89 | num.set_mpreal (r.num.get_real ().val, i.num.get_real ().val);
| ^
../lib/number.vala: In function ‘number_construct_eulers’:
../lib/number.vala:101:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
101 | num.get_real ().val.set_unsigned_integer (1);
| ^
../lib/number.vala:103:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
103 | num.get_real ().val.exp (num.get_real ().val);
| ^
../lib/number.vala:103:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
103 | num.get_real ().val.exp (num.get_real ().val);
| ^
../lib/number.vala:104:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
104 | num.get_imag ().val.set_zero ();
| ^
../lib/number.vala: In function ‘number_construct_pi’:
../lib/number.vala:114:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
114 | num.get_real ().val.const_pi ();
| ^
../lib/number.vala:115:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
115 | num.get_imag ().val.set_zero ();
| ^
../lib/number.vala: In function ‘number_construct_tau’:
../lib/number.vala:120:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
120 | num.get_real ().val.const_tau ();
| ^
../lib/number.vala:121:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
121 | num.get_imag ().val.set_zero ();
| ^
../lib/number.vala: In function ‘number_to_integer’:
../lib/number.vala:132:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
132 | return num.get_real ().val.get_signed_integer ();
| ^
../lib/number.vala: In function ‘number_to_unsigned_integer’:
../lib/number.vala:137:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
137 | return num.get_real ().val.get_unsigned_integer ();
| ^
../lib/number.vala: In function ‘number_to_float’:
../lib/number.vala:142:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
142 | return num.get_real ().val.get_float (MPFR.Round.NEAREST);
| ^
../lib/number.vala: In function ‘number_to_double’:
../lib/number.vala:147:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
147 | return num.get_real ().val.get_double (MPFR.Round.NEAREST);
| ^
../lib/number.vala: In function ‘number_is_negative’:
../lib/number.vala:159:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
159 | return num.get_real ().val.sgn () < 0;
| ^
../lib/number.vala: In function ‘number_is_integer’:
../lib/number.vala:168:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
168 | return num.get_real ().val.is_integer () != 0;
| ^
../lib/number.vala: In function ‘number_is_positive_integer’:
../lib/number.vala:177:10: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
177 | return num.get_real ().val.sgn () >= 0 && is_integer ();
| ^
../lib/number.vala: In function ‘number_is_natural’:
../lib/number.vala:186:10: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
186 | return num.get_real ().val.sgn () > 0 && is_integer ();
| ^
../lib/number.vala: In function ‘number_is_complex’:
../lib/number.vala:192:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
192 | return !num.get_imag ().val.is_zero ();
| ^
../lib/number.vala: In function ‘number_compare’:
../lib/number.vala:223:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
223 | return num.get_real ().val.cmp (y.num.get_real ().val);
| ^
../lib/number.vala:223:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
223 | return num.get_real ().val.cmp (y.num.get_real ().val);
| ^
../lib/number.vala: In function ‘number_sgn’:
../lib/number.vala:229:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
229 | var z = new Number.integer (num.get_real ().val.sgn ());
| ^
../lib/number.vala: In function ‘number_abs’:
../lib/number.vala:245:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
245 | z.num.get_imag ().val.set_zero ();
| ^
../lib/number.vala:246:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
246 | MPC.abs (z.num.get_real ().val, num);
| ^
../lib/number.vala: In function ‘number_arg’:
../lib/number.vala:260:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
260 | z.num.get_imag ().val.set_zero ();
| ^
../lib/number.vala:261:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
261 | MPC.arg (z.num.get_real ().val, num);
| ^
../lib/number.vala:268:11: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
268 | z.num.get_real ().val.abs (z.num.get_real ().val);
| ^
../lib/number.vala:268:11: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
268 | z.num.get_real ().val.abs (z.num.get_real ().val);
| ^
../lib/number.vala: In function ‘number_real_component’:
../lib/number.vala:285:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
285 | z.num.set_mpreal (num.get_real ().val);
| ^
../lib/number.vala: In function ‘number_imaginary_component’:
../lib/number.vala:294:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
294 | z.num.set_mpreal (num.get_imag ().val);
| ^
../lib/number.vala: In function ‘number_integer_component’:
../lib/number.vala:301:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
301 | z.num.get_imag ().val.set_zero ();
| ^
../lib/number.vala:302:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
302 | z.num.get_real ().val.trunc (num.get_real ().val);
| ^
../lib/number.vala:302:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
302 | z.num.get_real ().val.trunc (num.get_real ().val);
| ^
../lib/number.vala: In function ‘number_fractional_component’:
../lib/number.vala:310:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
310 | z.num.get_imag ().val.set_zero ();
| ^
../lib/number.vala:311:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
311 | z.num.get_real ().val.frac (num.get_real ().val);
| ^
../lib/number.vala:311:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
311 | z.num.get_real ().val.frac (num.get_real ().val);
| ^
../lib/number.vala: In function ‘number_floor’:
../lib/number.vala:325:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
325 | z.num.get_imag ().val.set_zero ();
| ^
../lib/number.vala:326:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
326 | z.num.get_real ().val.floor (num.get_real ().val);
| ^
../lib/number.vala:326:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
326 | z.num.get_real ().val.floor (num.get_real ().val);
| ^
../lib/number.vala: In function ‘number_ceiling’:
../lib/number.vala:334:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
334 | z.num.get_imag ().val.set_zero ();
| ^
../lib/number.vala:335:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
335 | z.num.get_real ().val.ceil (num.get_real ().val);
| ^
../lib/number.vala:335:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
335 | z.num.get_real ().val.ceil (num.get_real ().val);
| ^
../lib/number.vala: In function ‘number_round’:
../lib/number.vala:343:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
343 | z.num.get_imag ().val.set_zero ();
| ^
../lib/number.vala:344:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
344 | z.num.get_real ().val.round (num.get_real ().val);
| ^
../lib/number.vala:344:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
344 | z.num.get_real ().val.round (num.get_real ().val);
| ^
../lib/number.vala: In function ‘number_reciprocal’:
../lib/number.vala:353:9: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
353 | z.num.mpreal_divide (z.num.get_real ().val, num);
| ^
../lib/number.vala: In function ‘number_root’:
../lib/number.vala:440:10: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
440 | z.num.get_real ().val.root (z.num.get_real ().val, (ulong) p);
| ^
../lib/number.vala:440:10: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
440 | z.num.get_real ().val.root (z.num.get_real ().val, (ulong) p);
| ^
../lib/number.vala:441:11: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
441 | z.num.get_imag().val.set_zero();
| ^
../lib/number.vala: In function ‘number_ln’:
../lib/number.vala:483:10: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
483 | z.num.get_imag ().val.abs (z.num.get_imag ().val);
| ^
../lib/number.vala:483:10: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
483 | z.num.get_imag ().val.abs (z.num.get_imag ().val);
| ^
../lib/number.vala: In function ‘number_factorial’:
../lib/number.vala:525:11: error: assignment to ‘MPFRGRealRef *’ {aka ‘struct _MPFRGRealRef *’} from incompatible pointer type ‘__mpfr_struct *’ [-Wincompatible-pointer-types]
525 | tmp2.gamma (tmp.num.get_real ().val);
| ^
[12/32] Compiling C object src/gnome-calculator.p/meson-generated_math-buttons.c.o
FAILED: src/gnome-calculator.p/meson-generated_math-buttons.c.o
/usr/bin/gcc -Isrc/gnome-calculator.p -Isrc -I../src -I. -I.. -Ilib -I../lib -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gtksourceview-5 -I/usr/include/libadwaita-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include config.h -MD -MQ src/gnome-calculator.p/meson-generated_math-buttons.c.o -MF src/gnome-calculator.p/meson-generated_math-buttons.c.o.d -o src/gnome-calculator.p/meson-generated_math-buttons.c.o -c src/gnome-calculator.p/math-buttons.c
../src/math-buttons.vala: In function ‘math_buttons_load_finc_dialogs’:
../src/math-buttons.vala:147:54: error: passing argument 3 of ‘math_buttons_load_finc_dialog’ from incompatible pointer type [-Wincompatible-pointer-types]
147 | load_finc_dialog ("ctrm_dialog", ctrm_entries, FinancialDialog.CTRM_DIALOG);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const gchar ** {aka const char **}
src/gnome-calculator.p/math-buttons.c:324:45: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
324 | gchar** entry_names,
| ~~~~~~~~^~~~~~~~~~~
../src/math-buttons.vala:148:53: error: passing argument 3 of ‘math_buttons_load_finc_dialog’ from incompatible pointer type [-Wincompatible-pointer-types]
148 | load_finc_dialog ("ddb_dialog", ddb_entries, FinancialDialog.DDB_DIALOG);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| |
| const gchar ** {aka const char **}
src/gnome-calculator.p/math-buttons.c:324:45: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
324 | gchar** entry_names,
| ~~~~~~~~^~~~~~~~~~~
../src/math-buttons.vala:149:52: error: passing argument 3 of ‘math_buttons_load_finc_dialog’ from incompatible pointer type [-Wincompatible-pointer-types]
149 | load_finc_dialog ("fv_dialog", fv_entries, FinancialDialog.FV_DIALOG);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| const gchar ** {aka const char **}
src/gnome-calculator.p/math-buttons.c:324:45: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
324 | gchar** entry_names,
| ~~~~~~~~^~~~~~~~~~~
../src/math-buttons.vala:150:53: error: passing argument 3 of ‘math_buttons_load_finc_dialog’ from incompatible pointer type [-Wincompatible-pointer-types]
150 | load_finc_dialog ("gpm_dialog", gpm_entries, FinancialDialog.GPM_DIALOG);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| |
| const gchar ** {aka const char **}
src/gnome-calculator.p/math-buttons.c:324:45: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
324 | gchar** entry_names,
| ~~~~~~~~^~~~~~~~~~~
../src/math-buttons.vala:151:53: error: passing argument 3 of ‘math_buttons_load_finc_dialog’ from incompatible pointer type [-Wincompatible-pointer-types]
151 | load_finc_dialog ("pmt_dialog", pmt_entries, FinancialDialog.PMT_DIALOG);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| |
| const gchar ** {aka const char **}
src/gnome-calculator.p/math-buttons.c:324:45: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
324 | gchar** entry_names,
| ~~~~~~~~^~~~~~~~~~~
../src/math-buttons.vala:152:52: error: passing argument 3 of ‘math_buttons_load_finc_dialog’ from incompatible pointer type [-Wincompatible-pointer-types]
152 | load_finc_dialog ("pv_dialog", pv_entries, FinancialDialog.PV_DIALOG);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| const gchar ** {aka const char **}
src/gnome-calculator.p/math-buttons.c:324:45: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
324 | gchar** entry_names,
| ~~~~~~~~^~~~~~~~~~~
../src/math-buttons.vala:153:54: error: passing argument 3 of ‘math_buttons_load_finc_dialog’ from incompatible pointer type [-Wincompatible-pointer-types]
153 | load_finc_dialog ("rate_dialog", rate_entries, FinancialDialog.RATE_DIALOG);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const gchar ** {aka const char **}
src/gnome-calculator.p/math-buttons.c:324:45: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
324 | gchar** entry_names,
| ~~~~~~~~^~~~~~~~~~~
../src/math-buttons.vala:154:53: error: passing argument 3 of ‘math_buttons_load_finc_dialog’ from incompatible pointer type [-Wincompatible-pointer-types]
154 | load_finc_dialog ("sln_dialog", sln_entries, FinancialDialog.SLN_DIALOG);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| |
| const gchar ** {aka const char **}
src/gnome-calculator.p/math-buttons.c:324:45: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
324 | gchar** entry_names,
| ~~~~~~~~^~~~~~~~~~~
../src/math-buttons.vala:155:53: error: passing argument 3 of ‘math_buttons_load_finc_dialog’ from incompatible pointer type [-Wincompatible-pointer-types]
155 | load_finc_dialog ("syd_dialog", syd_entries, FinancialDialog.SYD_DIALOG);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| |
| const gchar ** {aka const char **}
src/gnome-calculator.p/math-buttons.c:324:45: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
324 | gchar** entry_names,
| ~~~~~~~~^~~~~~~~~~~
../src/math-buttons.vala:156:54: error: passing argument 3 of ‘math_buttons_load_finc_dialog’ from incompatible pointer type [-Wincompatible-pointer-types]
156 | load_finc_dialog ("term_dialog", term_entries, FinancialDialog.TERM_DIALOG);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const gchar ** {aka const char **}
src/gnome-calculator.p/math-buttons.c:324:45: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
324 | gchar** entry_names,
| ~~~~~~~~^~~~~~~~~~~
../src/math-buttons.vala: In function ‘_math_buttons_finc_response_cb_gtk_dialog_response’:
../src/math-buttons.vala:163:54: error: passing argument 2 of ‘math_buttons_finc_response_cb’ from incompatible pointer type [-Wincompatible-pointer-types]
163 | dialog.response.connect (finc_response_cb);
| ^
| |
| GtkDialog * {aka struct _GtkDialog *}
src/gnome-calculator.p/math-buttons.c:328:48: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkDialog *’ {aka ‘struct _GtkDialog *’}
328 | GtkWidget* widget,
| ~~~~~~~~~~~^~~~~~
../src/math-buttons.vala: In function ‘_math_buttons_finc_activate_cb_gtk_entry_activate’:
../src/math-buttons.vala:169:54: error: passing argument 2 of ‘math_buttons_finc_activate_cb’ from incompatible pointer type [-Wincompatible-pointer-types]
169 | entry.activate.connect (finc_activate_cb);
| ^
| |
| GtkEntry * {aka struct _GtkEntry *}
src/gnome-calculator.p/math-buttons.c:334:48: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkEntry *’ {aka ‘struct _GtkEntry *’}
334 | GtkWidget* widget);
| ~~~~~~~~~~~^~~~~~
../src/math-buttons.vala: In function ‘_math_buttons_character_code_dialog_response_cb_gtk_dialog_response’:
../src/math-buttons.vala:459:71: error: passing argument 2 of ‘math_buttons_character_code_dialog_response_cb’ from incompatible pointer type [-Wincompatible-pointer-types]
459 | character_code_dialog.response.connect (character_code_dialog_response_cb);
| ^~~~~~~
| |
| GtkDialog * {aka struct _GtkDialog *}
src/gnome-calculator.p/math-buttons.c:429:65: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkDialog *’ {aka ‘struct _GtkDialog *’}
429 | GtkWidget* dialog,
| ~~~~~~~~~~~^~~~~~
math-buttons.c: In function ‘_math_buttons_character_code_dialog_close_request_gtk_window_close_request’:
math-buttons.c:2231:82: error: passing argument 2 of ‘math_buttons_character_code_dialog_close_request’ from incompatible pointer type [-Wincompatible-pointer-types]
src/gnome-calculator.p/math-buttons.c:435:71: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkWindow *’ {aka ‘struct _GtkWindow *’}
435 | GtkWidget* dialog);
| ~~~~~~~~~~~^~~~~~
../src/math-buttons.vala: In function ‘_math_buttons_character_code_dialog_activate_cb_gtk_entry_activate’:
../src/math-buttons.vala:462:71: error: passing argument 2 of ‘math_buttons_character_code_dialog_activate_cb’ from incompatible pointer type [-Wincompatible-pointer-types]
462 | character_code_entry.activate.connect (character_code_dialog_activate_cb);
| ^~~~~~~
| |
| GtkEntry * {aka struct _GtkEntry *}
src/gnome-calculator.p/math-buttons.c:439:65: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkEntry *’ {aka ‘struct _GtkEntry *’}
439 | GtkWidget* entry);
| ~~~~~~~~~~~^~~~~
../src/math-buttons.vala: In function ‘math_buttons_load_mode’:
../src/math-buttons.vala:442:42: error: passing argument 2 of ‘gtk_menu_button_set_popover’ from incompatible pointer type [-Wincompatible-pointer-types]
442 | menu_button.popover = math_popover;
| ^~~~~~
| |
| GtkPopover * {aka struct _GtkPopover *}
In file included from /usr/include/gtk-4.0/gtk/gtk.h:189,
from src/gnome-calculator.p/math-buttons.c:15:
/usr/include/gtk-4.0/gtk/gtkmenubutton.h:60:61: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkPopover *’ {aka ‘struct _GtkPopover *’}
60 | GtkWidget *popover);
| ~~~~~~~~~~~~~~~^~~~~~~
../src/math-buttons.vala:452:42: error: passing argument 2 of ‘gtk_menu_button_set_popover’ from incompatible pointer type [-Wincompatible-pointer-types]
452 | menu_button.popover = math_popover;
| ^~~~~~
| |
| GtkPopover * {aka struct _GtkPopover *}
/usr/include/gtk-4.0/gtk/gtkmenubutton.h:60:61: note: expected ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} but argument is of type ‘GtkPopover *’ {aka ‘struct _GtkPopover *’}
60 | GtkWidget *popover);
| ~~~~~~~~~~~~~~~^~~~~~~
../src/math-buttons.vala: In function ‘math_buttons_finc_response_cb’:
../src/math-buttons.vala:690:31: error: passing argument 1 of ‘_vala_array_dup3’ from incompatible pointer type [-Wincompatible-pointer-types]
690 | entries = ctrm_entries;
| ^~~~~
| |
| const gchar ** {aka const char **}
math-buttons.c:4547:27: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
../src/math-buttons.vala:693:31: error: passing argument 1 of ‘_vala_array_dup4’ from incompatible pointer type [-Wincompatible-pointer-types]
693 | entries = ddb_entries;
| ^~~~
| |
| const gchar ** {aka const char **}
math-buttons.c:4577:27: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
../src/math-buttons.vala:696:31: error: passing argument 1 of ‘_vala_array_dup5’ from incompatible pointer type [-Wincompatible-pointer-types]
696 | entries = fv_entries;
| ^~~
| |
| const gchar ** {aka const char **}
math-buttons.c:4607:27: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
../src/math-buttons.vala:699:31: error: passing argument 1 of ‘_vala_array_dup6’ from incompatible pointer type [-Wincompatible-pointer-types]
699 | entries = gpm_entries;
| ^~~~
| |
| const gchar ** {aka const char **}
math-buttons.c:4637:27: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
../src/math-buttons.vala:702:31: error: passing argument 1 of ‘_vala_array_dup7’ from incompatible pointer type [-Wincompatible-pointer-types]
702 | entries = pmt_entries;
| ^~~~
| |
| const gchar ** {aka const char **}
math-buttons.c:4667:27: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
../src/math-buttons.vala:705:31: error: passing argument 1 of ‘_vala_array_dup8’ from incompatible pointer type [-Wincompatible-pointer-types]
705 | entries = pv_entries;
| ^~~
| |
| const gchar ** {aka const char **}
math-buttons.c:4697:27: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
../src/math-buttons.vala:708:31: error: passing argument 1 of ‘_vala_array_dup9’ from incompatible pointer type [-Wincompatible-pointer-types]
708 | entries = rate_entries;
| ^~~~~
| |
| const gchar ** {aka const char **}
math-buttons.c:4727:27: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
../src/math-buttons.vala:711:32: error: passing argument 1 of ‘_vala_array_dup10’ from incompatible pointer type [-Wincompatible-pointer-types]
711 | entries = sln_entries;
| ^~~
| |
| const gchar ** {aka const char **}
math-buttons.c:4757:28: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
../src/math-buttons.vala:714:33: error: passing argument 1 of ‘_vala_array_dup11’ from incompatible pointer type [-Wincompatible-pointer-types]
714 | entries = syd_entries;
| ^~
| |
| const gchar ** {aka const char **}
math-buttons.c:4787:28: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
../src/math-buttons.vala:717:33: error: passing argument 1 of ‘_vala_array_dup12’ from incompatible pointer type [-Wincompatible-pointer-types]
717 | entries = term_entries;
| ^~~
| |
| const gchar ** {aka const char **}
math-buttons.c:4817:28: note: expected ‘gchar **’ {aka ‘char **’} but argument is of type ‘const gchar **’ {aka ‘const char **’}
[13/32] Compiling C object search-provider/gnome-calculator-search-provider.p/meson-generated_search-provider.c.o
FAILED: search-provider/gnome-calculator-search-provider.p/meson-generated_search-provider.c.o
/usr/bin/gcc -Isearch-provider/gnome-calculator-search-provider.p -Isearch-provider -I../search-provider -I. -I.. -Ilib -I../lib -Ilibmpfr -I../libmpfr -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gtksourceview-5 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -include config.h -MD -MQ search-provider/gnome-calculator-search-provider.p/meson-generated_search-provider.c.o -MF search-provider/gnome-calculator-search-provider.p/meson-generated_search-provider.c.o.d -o search-provider/gnome-calculator-search-provider.p/meson-generated_search-provider.c.o -c search-provider/gnome-calculator-search-provider.p/search-provider.c
../search-provider/search-provider.vala: In function ‘search_provider_solve_subprocess_co’:
../search-provider/search-provider.vala:74:46: error: passing argument 1 of ‘g_subprocess_newv’ from incompatible pointer type [-Wincompatible-pointer-types]
74 | subprocess = new Subprocess.newv (argv, flags);
| ~~~~~~^~~~~~~~~
| |
| gchar ** {aka char **}
In file included from /usr/include/glib-2.0/gio/gio.h:155,
from search-provider/gnome-calculator-search-provider.p/search-provider.c:17:
/usr/include/glib-2.0/gio/gsubprocess.h:49:80: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
49 | GSubprocess * g_subprocess_newv (const gchar * const *argv,
| ~~~~~~~~~~~~~~~~~~~~~~^~~~
ninja: build stopped: cannot make progress due to previous errors.
```
</details>https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/378[FEATURE] Switch to change the behavior of percentage addition2024-01-11T22:54:59ZAllow Protonmail[FEATURE] Switch to change the behavior of percentage addition`45.0.2` The current addition behavior ([Percentage manual](https://gitlab.gnome.org/GNOME/gnome-calculator/-/blob/master/help/C/percentage.page#L15-16)) is completely unintuitive, I expected that adding a % would simply divide the value...`45.0.2` The current addition behavior ([Percentage manual](https://gitlab.gnome.org/GNOME/gnome-calculator/-/blob/master/help/C/percentage.page#L15-16)) is completely unintuitive, I expected that adding a % would simply divide the value next to it by 100, not that it would take that percentage from the value to which I was adding. It would be good to add a switch to change the behavior to that described above and perhaps make it the default, and taking the percentage from the value being added as an additional option.
Current behavior:\
`20×100+50% = 3000`
Intuitive (in my opinion) behavior:\
`20×100+50% = 2000,5`
Like for example now i can change equation and get same result and don't understand why:\
`20×100+50%×100 = 3000`\
and i would expect `2050`.https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/377Exponent ^ in hex mode makes calc to freeze draining 100% CPU2024-01-07T21:09:57ZRux RooxExponent ^ in hex mode makes calc to freeze draining 100% CPUHello here
At first, thanks for working on this project
I found a bug accidentally while attempted to use `^`(expecting it to be XOR) for the hexadecimal values in "programming mode"
![image](/uploads/4e42bbda073a03cd78ca4265eed57424/...Hello here
At first, thanks for working on this project
I found a bug accidentally while attempted to use `^`(expecting it to be XOR) for the hexadecimal values in "programming mode"
![image](/uploads/4e42bbda073a03cd78ca4265eed57424/image.png)
Seems like there is no overflow protection when working with the hexadecimal numbers. In decimal it works as expected(resulting in error):
![image](/uploads/abbd3822fdaf646c5b0b0f43ed03be3b/image.png)
Calculator version: 41.1
OS: Pop_os 22.04 LTS
Gnome: 42.9 @ X11https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/376Add dark mode support2024-01-06T14:05:48ZHarish RajagopalAdd dark mode supportI'm running GNOME calculator 45.0.2 on Arch Linux. The dconf setting `org.gnome.desktop.interface.color-scheme` is set to `prefer-dark`. However, GNOME calculator is shown in light mode. Could you make it pick up this dconf setting, or a...I'm running GNOME calculator 45.0.2 on Arch Linux. The dconf setting `org.gnome.desktop.interface.color-scheme` is set to `prefer-dark`. However, GNOME calculator is shown in light mode. Could you make it pick up this dconf setting, or alternately, add an option in the preferences menu to switch to dark mode?https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/375calculator says that tan of 270 is −9.482201123×10⁶⁰¹2024-01-08T09:12:25ZJHon Doecalculator says that tan of 270 is −9.482201123×10⁶⁰¹How to reproduce:
open calculator
switch to mode "Advanced"
press tan(270)
press enter
look at result -it is wrong-
<br>
tan of 270 is undefined just like tan of 90
Calculator Version: 41.1How to reproduce:
open calculator
switch to mode "Advanced"
press tan(270)
press enter
look at result -it is wrong-
<br>
tan of 270 is undefined just like tan of 90
Calculator Version: 41.1https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/374Feature Request: Add a button for pi2023-12-18T22:28:24ZChristianFeature Request: Add a button for piPlease add a button for the irrational number pi (3.14159265358979323846264338327950288419716939937510…).Please add a button for the irrational number pi (3.14159265358979323846264338327950288419716939937510…).https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/373The calculator doesn't remember its size after closing.2023-12-14T17:59:58ZВадим КущевскийThe calculator doesn't remember its size after closing.What I mean is that it should remember its size when I close the application, and then when I reopen it, it should have the same size that I closed it with. As seen in the video, the size is not being saved, but for example, the gnome te...What I mean is that it should remember its size when I close the application, and then when I reopen it, it should have the same size that I closed it with. As seen in the video, the size is not being saved, but for example, the gnome text editor saves its size.
![video_2023-12-14_20-57-15](/uploads/74cae695ec1403a7f9ec5de2e0134930/video_2023-12-14_20-57-15.mp4)
OS: Fedora 39 calc: 45.02
I don't know what he did, but nothing has changed:
https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/328https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/372Calculator pops up currencies in programming mode when entering hex characters2024-03-27T19:16:44ZJani NikulaCalculator pops up currencies in programming mode when entering hex charactersCalculator 43.0.1. Programming mode, Hexadecimal input. Entering hex characters a-f as the first digit pops up a currency selection dialog. It's a distraction.
I believe entering currencies in hexadecimal for conversions in programming ...Calculator 43.0.1. Programming mode, Hexadecimal input. Entering hex characters a-f as the first digit pops up a currency selection dialog. It's a distraction.
I believe entering currencies in hexadecimal for conversions in programming mode is a niche that the calculator could perhaps ignore.
Personally I think a and f popping up functions is also a distraction in programming mode, but more justifiable than currencies.
Please consider removing the currency (and function) popups from the programming mode.
![Screenshot_from_2023-12-01_14-26-30](/uploads/d62a9fe900c8b4ff97d4dda60e61a43f/Screenshot_from_2023-12-01_14-26-30.png)https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/371Provide RPN (Reverse Polish Notation)2023-11-18T08:19:47ZEliot FossProvide RPN (Reverse Polish Notation)RPN (Reverse Polish Notation) is another way of interfacing with calculators that some people, including me, are used to. I am wondering if it would be within the scope of this project to include? Would it require large amounts of work...RPN (Reverse Polish Notation) is another way of interfacing with calculators that some people, including me, are used to. I am wondering if it would be within the scope of this project to include? Would it require large amounts of work to achieve, due to fundamental changes in the use of the calculator?https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/369sqrt() doesn't work in combination with unit conversions2023-11-13T10:02:03Zns Asqrt() doesn't work in combination with unit conversionsIf one tries to get the square root of anything with inline unit conversions, it fails.
Here's an example reproducer:
```
sqrt((31cm to inches)^2+(17cm to inches)^2)
```
This will fail with `Unknown variable "cmtoinches"` despite the fa...If one tries to get the square root of anything with inline unit conversions, it fails.
Here's an example reproducer:
```
sqrt((31cm to inches)^2+(17cm to inches)^2)
```
This will fail with `Unknown variable "cmtoinches"` despite the fact that the bit inside the `sqrt()` block works flawlessly on its own:
```
(31cm to inches)^2+(17cm to inches)^2
```
Version of Calculator used: 44.0https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/367Convert hex not working in search provider2023-11-13T11:59:39ZMaximilianoConvert hex not working in search providerTyping in the search provider `10 to hex` (returns A) will work, but neither `a in dec`, `A in dec`, `a in decimal`, `A in decimal`, will work.
This is documented to work in the app docs, I suppose I don't have to type the 16 subindex....Typing in the search provider `10 to hex` (returns A) will work, but neither `a in dec`, `A in dec`, `a in decimal`, `A in decimal`, will work.
This is documented to work in the app docs, I suppose I don't have to type the 16 subindex.
![image](/uploads/85faa79111fa1c15c1b73644950f92c2/image.png)
EDIT: Do note that 1010 in octal does work, and this is Calculator 45.0.2. No errors on the system logs.https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/364Search provider does not calculate localized unit conversion in 452023-09-25T14:48:26ZZhafran Rama AzmiSearch provider does not calculate localized unit conversion in 45Unit Conversions in search provider could be done pre 45 via `20 MiB in KiB`, before 45, it is localized, so it depends on the locale, in my case, it is `2 MiB dalam KiB`, but now I have to use `in`
but now it isn't localized.
![gambar...Unit Conversions in search provider could be done pre 45 via `20 MiB in KiB`, before 45, it is localized, so it depends on the locale, in my case, it is `2 MiB dalam KiB`, but now I have to use `in`
but now it isn't localized.
![gambar](/uploads/40caed692d9763400a335d401087269f/gambar.png)https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/362mod can not use the result from the previous equation2023-11-13T10:13:05Zpidogsmod can not use the result from the previous equationThe mod operator can not use the result from the previous equation.
When I type 6mod4 the result is 2 which is correct.
When I do a calculation beforehand and use mod it gives me the error 'Unknown variable " mod"'
This problem could ...The mod operator can not use the result from the previous equation.
When I type 6mod4 the result is 2 which is correct.
When I do a calculation beforehand and use mod it gives me the error 'Unknown variable " mod"'
This problem could be linked to issue #39.
![Screenshot_from_2023-09-21_21-48-48](/uploads/acc43aad4158a97137bbb72951267203/Screenshot_from_2023-09-21_21-48-48.png)
Using flatpack V 44.0https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/361Allow whitespace in search provider2023-09-25T05:41:49ZGregor NiehlAllow whitespace in search providerWhen typing in the GNOME Search/Overview, Calculator doesn't accept whitespace between characters. For instance, it will return a result for `2+2`, but not for `2 + 2`. It would be nice if the search provider was whitespace-agnostic.When typing in the GNOME Search/Overview, Calculator doesn't accept whitespace between characters. For instance, it will return a result for `2+2`, but not for `2 + 2`. It would be nice if the search provider was whitespace-agnostic.