views/month-cell: Don't assert icon_tooltip_binding
The g_assert line would exit the program whenever we tried targeting a month cell from the inspector. Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/601>
This commit is contained in:
@@ -321,8 +321,6 @@ on_breakpoint_changed_cb (GcalMonthCell *self,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_assert (G_IS_BINDING (self->icon_tooltip_binding));
|
|
||||||
|
|
||||||
g_clear_pointer (&self->icon_tooltip_binding, g_binding_unbind);
|
g_clear_pointer (&self->icon_tooltip_binding, g_binding_unbind);
|
||||||
gtk_widget_set_tooltip_text (GTK_WIDGET (self->weather_icon), NULL);
|
gtk_widget_set_tooltip_text (GTK_WIDGET (self->weather_icon), NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user