Commit Graph
31 Commits
Author SHA1 Message Date
Michael Catanzaro 897c7c5ec9 weather-service: don't print error when geolocation is disabled
Fixes #954
2023-04-22 10:28:18 +00:00
Vikram Kangotra 0a0caa63cf weather-service: Extend weather forecast to 5 days 2023-03-03 23:04:49 +00:00
Jan Alexander Steffens (heftig) 0838616102 weather service: Reduce location accuracy
This avoids activating the compass.
2022-04-02 21:41:47 +00:00
Bilal Elmoussaoui 66a3661e60 location service: adapt to make use of the portal
GClue automatically calls the portal for us when sandboxed and in such case
a NULL is returned for the client porxy because the calls goes through the portal.

Part of https://gitlab.gnome.org/GNOME/Initiatives/-/issues/30
2022-02-12 21:16:19 +00:00
Georges Basile Stavracas Neto 7efd6facc9 Port to GWeather4
In preparation for the GTK4 port. This is just a cheap port,
I'll implement proper entry completion after porting to GTK4.
2022-02-11 09:18:38 -03:00
Marco Trevisan (Treviño) fdb69db48a weather-service: Enable met.no provider
As per the switch to libgweather 40 with commits 216a8984 and a2a6d2e4
we already comply with met.no TOS [1] as we already provide explicitly
the application contact info and (implicitly, being a GApplication) the
application-id.

So we can enable the met.no weather provider, making the weather
forecast to work again.

[1] https://api.met.no/doc/TermsOfService

Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/682
2021-05-31 20:02:36 +02:00
Johannes Maibaum a2a6d2e4aa weather-service: Set contact_info to DOAP file URL
Currently, GNOME Calendar does not set up the contact_info needed in
libgweather 40 API. This leads to the following assertion, and no
weather forecast info being shown in Calendar:

`gweather_info_update: assertion 'info->contact_info != NULL' failed.`

To fix the assertion, set the URL to the DOAP file on the master branch.
GNOME Weather does the same, see:

https://gitlab.gnome.org/GNOME/gnome-weather/-/commit/6763f7dc9cb25eac4aa13e94e07ea932a42c8e4d

Part of #682
2021-04-13 01:07:37 +00:00
Michael Catanzaro 1740382963 Fix typo because I am hopeless 2021-01-12 16:39:47 -06:00
Michael Catanzaro 216a8984d4 Disable yr.no weather provider
See: #682
2021-01-12 15:56:53 -06:00
Georges Basile Stavracas Neto a146b9050d project: Silence CI warnings 2020-10-31 16:55:06 -03:00
Georges Basile Stavracas Neto e67ebcfc50 project: Move all UI-related files to src/gui/
So we can have a nice separation.
2020-10-30 14:44:33 -03:00
Georges Basile Stavracas Neto 92863f578f project: Split GResource files in subdirs 2020-10-30 14:17:40 -03:00
Georges Basile Stavracas Neto eb954505e4 project: Split meson files in subdirs
It allows us to better control what each subdir does, etc. This is
only the first step; we want to also split GResources, etc.
2020-10-30 13:45:50 -03:00
Georges Basile Stavracas Neto b772349c3f Move UI files to src/
Keep it in sync with what To Do and Settings do.
2019-12-02 16:41:56 -03:00
Georges Basile Stavracas Neto 357ec18a0a Fix GcalContext management
GObject automatically notifies when passing
properties as part of g_object_new(). This
happens after the instance is created, thus
after constructed().

By passing G_PARAM_EXPLICIT_NOTIFY, we avoid
this behavior. However, we are still notifying
PROP_CONTEXT in GcalWindow. Removing this other
notify fixes the crashes related to GcalContext.

https://gitlab.gnome.org/GNOME/gnome-calendar/issues/417
2019-10-04 20:54:05 -03:00
Christopher Davis 0d6b2327e0 flatpak: Allow dual installation of app bundles
Part of https://gitlab.gnome.org/GNOME/Initiatives/issues/1.
Allows for the installation of development bundles alongside
stable versions.

Related to https://gitlab.gnome.org/GNOME/gnome-calendar/issues/285
2019-09-30 12:04:08 -03:00
Michael Catanzaro 18ae67cb59 Use more g_signal_connect_object()
Most of these are probably paranoid, not bugs. I haven't done an
exhaustive review to see what really needs it: that would be
time-consuming and require significant familiarity with the Calendar
codebase. This was just a quick check. Anyway, I vote for paranoid
when it comes to using g_signal_connect() regardless. It's dangerous,
and there's no reason to ever leave a signal connected after the user
data object has been destroyed.

Fixes #423
2019-09-14 23:28:42 +00:00
Michael Catanzaro 223ed62034 weather-service: Fix buffer overflow in get_icon_name_sortkey()
We can just use strlen() here.

Fixes #425
2019-07-09 21:48:11 -03:00
Georges Basile Stavracas Neto 02a5eca945 weather-service: Reorganize file 2019-07-09 21:47:14 -03:00
Michael Catanzaro 04053dbf47 weather-service: Properly disconnect from GWeatherInfo
We fail to disconnect from the GWeatherInfo in both update_location()
and dispose. We have to fix update_location() manually. To avoid the
need to disconnect in dispose, we can just use g_signal_connect_object().
2019-07-09 21:26:22 -03:00
Georges Basile Stavracas Neto 01fdf79e6a Use weather service from GcalContext
All those properties were a waste compared to storing it
into the context.
2019-04-25 16:30:56 -03:00
Georges Basile Stavracas Neto 802c6948e8 manager: Move GSettings to GcalContext 2019-04-25 16:30:54 -03:00
Georges Basile Stavracas Neto dc9d1d0d9b weahter-settings: Receive a context 2019-04-25 16:30:54 -03:00
Georges Basile Stavracas Neto 9424d8f3cc weather-settings: Only deserialize valid locations 2018-01-27 23:32:21 -02:00
Georges Basile Stavracas Neto fe53414b07 weather-settings: Instrument more loading functions 2018-01-27 23:27:25 -02:00
Georges Basile Stavracas Neto a7aa997ac3 weather-service: Remove more dead code 2018-01-27 23:27:03 -02:00
Georges Basile Stavracas Neto ac4f8feb15 weather-service: More small refactorings
Now it appears to be fully funcitonal again!
2018-01-27 22:26:30 -02:00
Georges Basile Stavracas Neto 6dc3d9ee39 weather-settings: Improve start/stop logic 2018-01-27 21:56:58 -02:00
Georges Basile Stavracas Neto 5dddff9939 weather-service: Fix debug location
This is tricking us into thinking the code is being
executed when in fact it's falling into the early return.
2018-01-27 21:56:14 -02:00
Georges Basile Stavracas Neto 499db7bfd4 weather: Rework weather management
This commit brings a few changes that I was too lazy to
split in different commits:

 * Remove a few useless arguments in the GcalWeatherService API
 * Move the weather management code from GcalWindow to GcalWeatherSettings
 * A few style changes
2018-01-27 20:36:29 -02:00
Georges Basile Stavracas Neto ab20672aeb weather: Move to a subdirectory 2018-01-27 15:24:32 -02:00