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.
This commit is contained in:
Georges Basile Stavracas Neto
2022-02-11 09:18:38 -03:00
parent 26822a1366
commit 7efd6facc9
6 changed files with 19 additions and 23 deletions
+1 -3
View File
@@ -665,7 +665,7 @@ static void
update_gclue_location (GcalWeatherService *self,
GClueLocation *location)
{
GWeatherLocation *wlocation = NULL; /* owned */
g_autoptr (GWeatherLocation) wlocation = NULL; /* owned */
if (location)
{
@@ -682,8 +682,6 @@ update_gclue_location (GcalWeatherService *self,
}
update_location (self, wlocation);
g_clear_pointer (&wlocation, gweather_location_unref);
}
+1 -2
View File
@@ -20,8 +20,7 @@
#define GCAL_WEATHER_SERVICE_H
#include <libgweather/gweather.h>
#include <glib-object.h>
#include <glib.h>
#include <gtk/gtk.h>
#include "gcal-weather-info.h"