Commit Graph

65 Commits

Author SHA1 Message Date
Richard Cohen
5b80ae0f51 Refactor: hide implementation of GOOptionMenu (move from .h -> .c) 2023-06-27 10:55:05 +01:00
Richard Cohen
aa638ccc03 Refactor: DECLARE_FINAL GOOptionMenu < GtkButton 2023-06-27 10:38:47 +01:00
Richard Cohen
02a9cf6ec3 Refactor: DECLARE_FINAL GOCharmapSel < GtkBox 2023-06-27 10:38:47 +01:00
Richard Cohen
167c55e506 Refactor: DEFINE_TYPE GOOptionMenu < GtkButton 2023-05-26 13:34:09 +01:00
Richard Cohen
8e36a64506 Refactor: DEFINE_TYPE GOCharmapSel < GtkBox 2023-05-26 13:34:09 +01:00
Robert Fewell
d6514a47f2 Windows build failure, variable set but not used
With the introduction of using -Werror=unused-but-set-variable, a
variable in strptime.c was defined but no used.

Moved to be included in #ifdef _NL_CURRENT as that is where it is used.
2023-02-21 10:15:26 +00:00
Richard Cohen
05975aa510 [-Wunused-function] - remove commented out reduce_tests() and dependents 2023-02-16 09:20:59 +00:00
Richard Cohen
f63dddcc84 [-Wunused-but-set-variable] (clang) - remove 2023-02-16 09:20:59 +00:00
Richard Cohen
0798bce2a6 [-Wunused-value] - remove
borrowed/jenny/jenny.c: In function ‘next_builder’:
borrowed/jenny/jenny.c:1164:5: warning: statement with no effect [-Wunused-value]
 1164 |     for (i; i<n-1; ++i) {            /* reset all less significant positions */
      |     ^~~
borrowed/jenny/jenny.c:1172:5: warning: statement with no effect [-Wunused-value]
 1172 |     for (i; i<n-1; ++i) {            /* reset all less significant positions */
      |     ^~~
borrowed/jenny/jenny.c: In function ‘confirm’:
borrowed/jenny/jenny.c:1797:7: warning: statement with no effect [-Wunused-value]
 1797 |       for (i; i<n-1; ++i) {          /* reset all less significant positions */
      |       ^~~
borrowed/jenny/jenny.c:1805:7: warning: statement with no effect [-Wunused-value]
 1805 |       for (i; i<n-1; ++i) {          /* reset all less significant positions */
      |       ^~~

libgnucash/backend/xml/io-gncxml-v2.cpp: In function ‘gboolean qof_session_load_from_xml_file_v2_full(GncXmlBackend*, QofBook*, sixtp_push_handler, gpointer, QofBookFileType)’:
libgnucash/backend/xml/io-gncxml-v2.cpp:806:40: warning: value computed is not used [-Wunused-value]
  806 |                 g_thread_join (thread) != nullptr;
      |                 ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~

libgnucash/engine/Account.cpp: In function ‘void xaccFreeAccount(Account*)’:
libgnucash/engine/Account.cpp:1428:17: warning: statement has no effect [-Wunused-value]
 1428 |     priv->color == nullptr;
      |     ~~~~~~~~~~~~^~~~~~~~~~
libgnucash/engine/Account.cpp:1429:22: warning: statement has no effect [-Wunused-value]
 1429 |     priv->sort_order == nullptr;
      |     ~~~~~~~~~~~~~~~~~^~~~~~~~~~
libgnucash/engine/Account.cpp:1430:17: warning: statement has no effect [-Wunused-value]
 1430 |     priv->notes == nullptr;
      |     ~~~~~~~~~~~~^~~~~~~~~~
libgnucash/engine/Account.cpp:1431:18: warning: statement has no effect [-Wunused-value]
 1431 |     priv->filter == nullptr;
      |     ~~~~~~~~~~~~~^~~~~~~~~~

libgnucash/engine/gnc-int128.cpp: In function ‘void decimal_from_binary(uint64_t*, uint64_t, uint64_t)’:
libgnucash/engine/gnc-int128.cpp:898:36: warning: right operand of comma operator has no effect [-Wunused-value]
  898 |     d[3] = (hi >> 32) & bin_mask, 0;
      |                                    ^
2023-02-16 09:19:19 +00:00
Richard Cohen
ea2d3be217 Remove some unused variables with obviously no side effects 2023-02-06 14:19:22 +00:00
John Ralls
f8465dadf4 Fix a pair of missed extern "C" decls. 2023-01-26 12:45:10 -08:00
Christopher Lam
4cf25cb7be GList* from gtk_container_get_children must be freed
fix leaks
2021-08-20 09:03:37 +08:00
luz paz
95f8884892 Fix misc. typos in comments 2021-06-29 08:46:34 +02:00
Christopher Lam
d2a4aef3bb [chartjs] upgrade chartjs to 2.9.4
fixes CVE-2020-7746
2021-05-11 19:26:23 +08:00
Robert Fewell
bf9b267266 Change down arrow to align more with existing widgets
Instead of using the icon name 'go-down' use 'pan-down-symbolic'
2020-11-06 13:22:39 +00:00
Robert Fewell
3602753f50 Remove some Gtk version checks in code
With the requirement for Gtk+ 3.22, the version checks dealing with
checking for version 3.20 or 3.22 are no longer required so these have
been removed in the source files.
2020-05-01 11:54:58 +01:00
Geert Janssens
c05281c582 Use new keyword parameters for all calls to gnc_add_scheme_targets 2020-03-30 08:41:29 +02:00
Geert Janssens
6316debc17 Moderately bump aqbanking and gwenhywfar versions
The chosen versions are those available in Ubuntu 18.04, our baseline distro.
This allows to drop our own copy of gwenhywfar-gui.
2020-02-24 13:31:02 +01:00
Geert Janssens
301db9020d Merge branch 'maint' 2020-02-06 16:50:08 +01:00
Geert Janssens
90e95ba8ef CMake - remove parameter repetition in else() and endif() statements - part 2
This follows Professional CMake's recommended practises
I missed plenty of these in my first commit. This one should fix
these remaining occurrences.
2020-02-06 16:16:36 +01:00
Geert Janssens
9214f2ed5b Merge branch 'maint' 2019-09-18 22:42:48 +02:00
luz.paz
65bb60d621 Fix typos for gnuchash/ doc/ bindings/ and misc.
Typos found via `codespell -q 3 -D ~/Projects/codespell/codespell_lib/data/dictionary.txt -S *.po,./po,*.min.js,./ChangeLog*,./NEWS,./doc/README*,./AUTHORS,./libgnucash/tax/us/txf-de*,./data/accounts -L ans,cas,dragable,gae,iff,iif,mut,nd,numer,startd,stoll`
2019-09-13 20:26:03 -04:00
Geert Janssens
8d24252860 RptCleanup - Internalize guile-json module
This is in preparation of the final guile restructuring step:
install gnucash scm files directly in guile's default site module directory.
Internalizing json is done to prevent an install clash with a potentially
system installed guile-json module.
2019-06-18 14:25:04 +02:00
Geert Janssens
3d150de16f Bump minimum Gtk version to 3.18 2019-06-12 15:17:29 +02:00
John Ralls
9ec5eab714 Merge branch 'maint' 2019-06-09 12:43:12 -07:00
Geert Janssens
e210af23f6 Fix list REMOVE_ITEM command 2019-06-06 21:00:06 +02:00
Geert Janssens
598c374c92 Fix distcheck for chartjs 2019-06-06 18:54:07 +02:00
Geert Janssens
15a35e6a3b Housekeeping - replace plenty of http links with https
There are more, but these are most common ones.
There are also a number of urls that don't behave well when https, so those are skipped
At some point I have also started marking non-working URLs as [DEAD LINK], though
that's not a full coverage.
2019-06-06 15:52:30 +02:00
Christopher Lam
847c531fdd [CHARTJS] add Chart.js v2.8.0
Released March 2019

This aims to replace jqplot which is unsupported.
2019-06-03 21:27:45 +08:00
John Ralls
3a91eedb45 Fix new gcc-8 warning about strncat.
gcc-8 wants us to use strcat for string constants.
2019-06-01 12:55:17 -07:00
Christopher Lam
b5fe4e3c64 [guile-json] add files to fix distcheck 2019-04-27 17:03:41 +08:00
Christopher Lam
84cc7b1bff [guile-json] fix CMakeLists.txt
one file was renamed during the guile-json update.
2019-04-25 10:51:20 +08:00
Christopher Lam
66ae2abb8e [guile-json] remove dependency on srfi-43
this is a compatibility hack to remove dependency on srfi-43 which is
not present on ubuntu 14.04. create a simplified vector-for-each
suitable for this module.
2019-04-04 19:44:00 +08:00
Christopher Lam
816dd3ea2a [guile-json] show better error messages 2019-04-04 19:44:00 +08:00
Christopher Lam
d39f180c60 [guile-json] upgrade to latest version 2019-04-04 19:44:00 +08:00
John Ralls
bf55c30aeb Fix most of the unused assignment errors from static analysis.
There are a very few left that need deeper study, but this gets
rid of most of the noise. For the most part it's just getting rid of
extra variables or removing an assignment that is always
replaced later but before any reads of the variable. A few are
discarded result variables.
2018-11-30 15:08:41 +09:00
John Ralls
93f3a8ea82 Fix build of jenny.c on 32-bit builds, mingw-w64. 2018-08-23 11:49:49 -07:00
Geert Janssens
54a5097c60 Bug 796777 - CVE-2008-1391: Integer overflow in included strfmon function
We only used strfmon in one source file to generate three fixed format
strings. Instead of updating to a newer strfmon in borrowed I have
chosen to reimplement the string formatters for these strings in C++.
Note this is *not* a full c++ conversion of the full functionality
of assistant-loan. Only the string parsing has been redone.
2018-08-17 16:23:12 +02:00
John Ralls
1131aa6fc4 Clean up jenny's whitespace. 2018-07-23 12:48:52 -07:00
John Ralls
40680369f6 Fix up jenny so that it complies with std=C11. 2018-07-23 12:47:54 -07:00
John Ralls
827c43d935 Add jenny to the dist and compile it. 2018-07-23 12:47:25 -07:00
John Ralls
fa1b4c685f Add jenny to sources for combinatorics testing. 2018-07-16 14:08:24 -07:00
Potuz
e3e1464a01 Bug 794617 - Can't compile with -DWITH_GNUCASH=NO due to scm-gnome-utils
Pricedb.go doesn't need gnc-gnome-utils and we don't need WebKit or
gwenhywfar-gtk3 if we have no GUI.
2018-06-07 14:17:49 -07:00
Geert Janssens
85c7f7d1cb Install guile-json on the toplevel scm directory instead of gnucash
It's imported code, not gnucash specific. In addition that's where the json
script expexts to find it's subfiles.
2018-05-04 10:22:57 +02:00
Geert Janssens
a9f35ed7ae Lowercase cmake commands
A huge bikeshed fest but it distracted me enough to do it anyway.
2018-05-03 23:18:15 +02:00
Geert Janssens
92afea59ae Fix guile-json inclusion 2018-05-03 21:19:55 +02:00
Christopher Lam
50e109a9fa guile-json: attempt cmake 2018-05-03 21:13:52 +02:00
Christopher Lam
02cfd017e9 guile-json: upgrade to 4-byte unicode chars. 2018-05-03 21:13:52 +02:00
Christopher Lam
52d5f0ba2d guile-json - initial commit 2018-05-03 21:13:52 +02:00
Robert Fewell
9b120f95a9 Missing container add for textbrowser
Needed to add gtk_container_add to add the text_view to the scroll
window.
2018-03-31 17:11:15 +01:00