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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user