gui/event: Add some assertions
This commit is contained in:
@@ -341,10 +341,15 @@ gcal_event_widget_set_event_tooltip (GcalEventWidget *self,
|
|||||||
|
|
||||||
if (allday && !multiday)
|
if (allday && !multiday)
|
||||||
{
|
{
|
||||||
|
g_assert (start != NULL);
|
||||||
|
|
||||||
g_string_append_printf (tooltip_mesg, "\n%s", start);
|
g_string_append_printf (tooltip_mesg, "\n%s", start);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
g_assert (start != NULL);
|
||||||
|
g_assert (end != NULL);
|
||||||
|
|
||||||
g_string_append_printf (tooltip_mesg,
|
g_string_append_printf (tooltip_mesg,
|
||||||
"\n%s - %s",
|
"\n%s - %s",
|
||||||
is_ltr ? start : end,
|
is_ltr ? start : end,
|
||||||
|
|||||||
Reference in New Issue
Block a user