468cb5980b
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.
17 lines
600 B
Diff
17 lines
600 B
Diff
diff --git a/src/gui/views/gcal-year-view.c b/src/gui/views/gcal-year-view.c
|
|
index ac32a8f9..532425c1 100644
|
|
--- a/src/gui/views/gcal-year-view.c
|
|
+++ b/src/gui/views/gcal-year-view.c
|
|
@@ -2158,7 +2158,11 @@ update_weather (GcalYearView *self)
|
|
if (!updated)
|
|
{
|
|
gtk_label_set_text (self->temp_label, "");
|
|
- gtk_image_clear (self->weather_icon);
|
|
+ /* FIXME: This should never be NULL, but it somehow is.
|
|
+ * https://gitlab.gnome.org/GNOME/gnome-calendar/issues/299
|
|
+ */
|
|
+ if (self->weather_icon != NULL)
|
|
+ gtk_image_clear (self->weather_icon);
|
|
}
|
|
}
|
|
|