Wykres commitów

7 Commity (a07e2bedad912d541c03f02478abdbbfb133d79c)

Autor SHA1 Wiadomość Data
Zwarf a07e2bedad Fix issues which came in by the merges. Delete unnecessary files 2023-11-13 14:50:04 +01:00
Zwarf 64dbb31710 Merge branch 'main' into 'more_warnings'
# Conflicts:
#   src/time-picker/time-picker.c
2023-11-13 11:23:10 +00: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 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 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
Zwarf 47eae76c0b Design change towards suggestions of GNOME Circle 2023-04-25 15:38:59 +02:00
Zwarf 1caa4284ce Make a separate widget out of the date/time selector widgets. 2022-09-14 00:15:39 +02:00