aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/idocalendarmenuitem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/idocalendarmenuitem.c b/src/idocalendarmenuitem.c
index 65dac7f..7c20baf 100644
--- a/src/idocalendarmenuitem.c
+++ b/src/idocalendarmenuitem.c
@@ -156,6 +156,8 @@ ido_calendar_menu_item_key_press (GtkWidget *widget,
{
IdoCalendarMenuItem *menuitem = (IdoCalendarMenuItem *)data;
+ g_return_val_if_fail (IDO_IS_CALENDAR_MENU_ITEM (menuitem), FALSE);
+
if (menuitem->priv->selected)
{
GtkWidget *calendar = menuitem->priv->calendar;