Wykres commitów

252 Commity (main)

Autor SHA1 Wiadomość Data
Zwarf f0b7a0107f v0.5.1 2024-11-10 15:11:51 +01:00
Zwarf 8b997f3abd Change permission error 2024-11-10 14:35:30 +01:00
Zwarf da1a05b14d Move to GNOME runtime version 47 2024-11-10 13:45:27 +01:00
Zwarf a5ec6988c2 v0.5.0 2023-11-14 00:25:35 +01:00
Zwarf 618ab33c46 Reduce margins in of the data overview box to fit mobile screens better 2023-11-13 22:19:42 +01:00
Zwarf aed0356c7c Fixing rotating map bug, fixing app not recognized as mobile friendly bug 2023-11-13 21:58:40 +01:00
Zwarf f0a35b253b Exclude negative Azimuth results 2023-11-13 15:28:05 +01:00
Zwarf a07e2bedad Fix issues which came in by the merges. Delete unnecessary files 2023-11-13 14:50:04 +01:00
Zwarf e026a09d83 Update README.md 2023-11-13 13:11:50 +00:00
Zwarf 3c60287c0a Merge branch 'more_warnings' into 'main'
Misc improvements (more gcc warnings, fix memory leaks, etc)

See merge request Zwarf/picplanner!7
2023-11-13 12:37:30 +00:00
Zwarf 64dbb31710 Merge branch 'main' into 'more_warnings'
# Conflicts:
#   src/time-picker/time-picker.c
2023-11-13 11:23:10 +00:00
Zwarf d14fa5ce11 Merge branch 'copyright' into 'main'
Include shumate copyright

See merge request Zwarf/picplanner!6
2023-11-13 11:12:42 +00:00
Zwarf 596c64f135 Merge branch 'main' into 'copyright'
# Conflicts:
#   copyright
#   meson.build
2023-11-13 11:12:02 +00:00
Zwarf 3240b50918 Merge branch 'circle' into 'main'
New UI design

See merge request Zwarf/picplanner!8
2023-11-13 10:55:16 +00:00
Zwarf dc7c3df345 Update to Version 0.4.1 2023-11-13 11:50:25 +01:00
Zwarf 425e184d0e possible workaround for lagging GUI? 2023-11-13 01:24:58 +01:00
Zwarf 7bf0f2172c Reduce write setting calls and map draw calls for better performance on touch devices 2023-11-12 11:50:39 +01:00
Zwarf e4eb1ef60a Found this crazy stupid bug which messes with the UI if the gsettings were set wrong 2023-11-12 01:14:43 +01:00
Zwarf 485b75b899 update 2023-11-11 22:29:08 +01:00
Zwarf aae275d9c8 Preparing for merge 2023-08-29 09:50:13 +02:00
Evangelos Ribeiro Tzaras e9670fed22 Include shumate copyright
As the code in src/map/draw-layer.c is mainly taken from shumate,
the copyright from the following files also applies:
- https://gitlab.gnome.org/GNOME/libshumate/-/blob/main/shumate/shumate-path-layer.c
- https://gitlab.gnome.org/GNOME/libshumate/-/blob/main/shumate/shumate-marker-layer.c

As the code in src/map/marker.c is mainly taken from shumate,
the copyright from the following files also applies:
- https://gitlab.gnome.org/GNOME/libshumate/-/blob/main/shumate/shumate-marker.c

The resulting code is (of course) still licensable under GPLv3+,
see https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility
2023-08-19 21:15:14 +02:00
Evangelos Ribeiro Tzaras 7c730f2ea6 Bump meson project version to 0.4.0
We already have a 0.4 tagged.
2023-08-19 21:15:14 +02:00
Zwarf c854def552 Hide unnecessary buttons dependent on the stack page 2023-07-20 17:11:35 +02:00
Zwarf 28619d0a82 Replace wrong button 2023-07-20 13:43:05 +02:00
Zwarf 9bc67c084f Add back button 2023-07-19 22:42:47 +02:00
Zwarf 79bbf19c44 Add change stack signal 2023-07-19 14:06:56 +02:00
Zwarf 1111e7115a Change the design of the overview page to reduce white space. Prepare everything to switch the stack page by button presses at the overview page. 2023-07-19 10:50:10 +02:00
Zwarf 1770546f53 Test AdwPreferencesGroup Style: Seems to big! 2023-07-18 15:53:43 +02:00
Evangelos Ribeiro Tzaras 48fb647e99 calc-milky-way: Prefer g_auto* macros
g_autofree will automatically free variables when they go out of
scope. g_autoptr will do the same, but using the appropriate freefunc
for the given type, e.g. GDateTime -> g_date_time_unref() or
GObject -> g_object_unref().

This automatic cleanup reduces the risk of memory leaks
and allows getting rid of some lines of code.
2023-07-17 20:27:29 +02:00
Evangelos Ribeiro Tzaras 11b4f96592 calc-moon: Prefer g_auto* macros
g_autofree will automatically free variables when they go out of
scope. g_autoptr will do the same, but using the appropriate freefunc
for the given type, e.g. GDateTime -> g_date_time_unref() or
GObject -> g_object_unref().

This automatic cleanup reduces the risk of memory leaks
and allows getting rid of some lines of code.
2023-07-17 20:27:29 +02:00
Evangelos Ribeiro Tzaras a9493dc507 calc-sun: Prefer g_auto* macros
g_autofree will automatically free variables when they go out of
scope. g_autoptr will do the same, but using the appropriate freefunc
for the given type, e.g. GDateTime -> g_date_time_unref() or
GObject -> g_object_unref().

This automatic cleanup reduces the risk of memory leaks
and allows getting rid of some lines of code.
2023-07-17 20:27:29 +02:00
Evangelos Ribeiro Tzaras c86104db9f draw-layer: Use g_clear_pointer instead of emulating it 2023-07-17 20:27:29 +02:00
Evangelos Ribeiro Tzaras a5ebb680f7 milky-way-view: Prefer g_auto* macros
g_autofree will automatically free variables when they go out of
scope. g_autoptr will do the same, but using the appropriate freefunc
for the given type, e.g. GDateTime -> g_date_time_unref() or
GObject -> g_object_unref().

This automatic cleanup reduces the risk of memory leaks
and allows getting rid of some lines of code.
2023-07-17 20:27:29 +02:00
Evangelos Ribeiro Tzaras 1ed1b769b8 moon-view: Prefer g_auto* macros
g_autofree will automatically free variables when they go out of
scope. g_autoptr will do the same, but using the appropriate freefunc
for the given type, e.g. GDateTime -> g_date_time_unref() or
GObject -> g_object_unref().

This automatic cleanup reduces the risk of memory leaks
and allows getting rid of some lines of code.
2023-07-17 20:27:29 +02:00
Evangelos Ribeiro Tzaras 9ec83cc7e3 overview-view: Fix memory leak 2023-07-17 20:27:29 +02:00
Evangelos Ribeiro Tzaras a5545bfe00 overview-view: Prefer g_auto* macros
g_autofree will automatically free variables when they go out of
scope. g_autoptr will do the same, but using the appropriate freefunc
for the given type, e.g. GDateTime -> g_date_time_unref() or
GObject -> g_object_unref().

This automatic cleanup reduces the risk of memory leaks
and allows getting rid of some lines of code.
2023-07-17 20:27:29 +02:00
Evangelos Ribeiro Tzaras 359bbee260 sun-view: Prefer g_auto* macros
g_autofree will automatically free variables when they go out of
scope. g_autoptr will do the same, but using the appropriate freefunc
for the given type, e.g. GDateTime -> g_date_time_unref() or
GObject -> g_object_unref().

This automatic cleanup reduces the risk of memory leaks
and allows getting rid of some lines of code.
2023-07-17 20:27:29 +02:00
Evangelos Ribeiro Tzaras 9665a95248 window: Fix memory leak 2023-07-17 20:05:38 +02:00
Evangelos Ribeiro Tzaras a94043e2ef window: Prefer g_auto* macros
g_autofree will automatically free variables when they go out of
scope. g_autoptr will do the same, but using the appropriate freefunc
for the given type, e.g. GDateTime -> g_date_time_unref() or
GObject -> g_object_unref().

This automatic cleanup reduces the risk of memory leaks
and allows getting rid of some lines of code.
2023-07-17 20:05:38 +02:00
Evangelos Ribeiro Tzaras 3255001a90 time-picker: Prefer g_auto* macros
g_autofree will automatically free variables when they go out of
scope. g_autoptr will do the same, but using the appropriate freefunc
for the given type, e.g. GDateTime -> g_date_time_unref() or
GObject -> g_object_unref().

This automatic cleanup reduces the risk of memory leaks
and allows getting rid of some lines of code.
2023-07-17 19:39:54 +02:00
Evangelos Ribeiro Tzaras 933089cf6f search: Prefer g_auto* macros
g_autofree will automatically free variables when they go out of
scope. g_autoptr will do the same, but using the appropriate freefunc
for the given type, e.g. GDateTime -> g_date_time_unref() or
GObject -> g_object_unref().

This automatic cleanup reduces the risk of memory leaks
and allows getting rid of some lines of code.
2023-07-17 19:39:41 +02:00
Evangelos Ribeiro Tzaras e22102e641 build: Mark private functions as static
Fixes the following error
../src/window/picplanner-window.c:247:1: error: no previous declaration for ‘picplanner_update_date_time’ [-Werror=missing-declarations]
  247 | picplanner_update_date_time (PicplannerWindow *window)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-07-17 19:23:12 +02:00
Evangelos Ribeiro Tzaras 29c660af5e transformations: Prefer atan2() to avoid special cases
This simplifies the code and also avoid the equality check for
floating numbers.

../src/calculations/calculations_transformations.c: In function ‘picplanner_transform_rotational_to_horizontal’:
../src/calculations/calculations_transformations.c:202:14: warning: comparing floating-point with ‘==’ or ‘!=’ is unsafe [-Wfloat-equal]
  202 |   else if (x == 0 && y < 0)
      |              ^~
../src/calculations/calculations_transformations.c:204:14: warning: comparing floating-point with ‘==’ or ‘!=’ is unsafe [-Wfloat-equal]
  204 |   else if (x == 0 && y > 0)
      |              ^~
2023-07-17 19:23:12 +02:00
Evangelos Ribeiro Tzaras 0c627b0e7f build: Conform to strict prototype requirement
-Wstrict-prototypes disallows empty function prototypes and
prefers specifying (void) instead.

Fixes the following type of warning
In file included from ../src/window/sun-page/sun-view.c:20:
../src/window/sun-page/sun-view.h:52:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
   52 | PicplannerSun *picplanner_sun_new ();
      | ^~~~~~~~~~~~~

The .c files also now include (void) to fix old-style definitions warnings
../src/time-picker/time-picker.c: In function ‘time_picker_new’:
../src/time-picker/time-picker.c:236:1: warning: old-style function definition [-Wold-style-definition]
  236 | time_picker_new ()
      | ^~~~~~~~~~~~~~~
2023-07-17 19:23:12 +02:00
Evangelos Ribeiro Tzaras f6b18b2286 draw-layer: Indent 'else' on the same level as 'if'
Fixes raised warnings from -Wmisleading-indentation
2023-07-17 19:23:12 +02:00
Evangelos Ribeiro Tzaras d98027988c build: Don't mix code and declarations
Fixes the warnings raised by -Wdeclaration-after-statement
../src/window/picplanner-window.c: In function ‘picplanner_update_date_time’:
../src/window/picplanner-window.c:290:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  290 |   double time_zone = (double) g_date_time_get_utc_offset (window->date_time)/3600/1000/1000;
      |   ^~~~~~
2023-07-17 19:23:12 +02:00
Evangelos Ribeiro Tzaras 7967767d21 build: Enable additional compiler warnings 2023-07-17 18:03:05 +02:00
Zwarf aec87618ae Change TimeZone to suggested positon 2023-06-19 01:18:59 +02:00
user a6559c76b7 Improve language support 2023-04-25 18:49:32 +02:00
Zwarf 47eae76c0b Design change towards suggestions of GNOME Circle 2023-04-25 15:38:59 +02:00