aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/calendar
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-09-10 18:58:25 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-09-10 18:58:25 +0800
commit2fe2eb76be6c3b5f791e897830261689fbb042fb (patch)
tree2e8f00a00ba735f4c803d80f2b92d1e31dfcebf7 /a11y/calendar
parentea3061eb0641e961bdcd7df6519a5c5346abff9c (diff)
downloadgsoc2013-evolution-2fe2eb76be6c3b5f791e897830261689fbb042fb.tar.gz
gsoc2013-evolution-2fe2eb76be6c3b5f791e897830261689fbb042fb.tar.zst
gsoc2013-evolution-2fe2eb76be6c3b5f791e897830261689fbb042fb.zip
** Fix for bug #471791
svn path=/trunk/; revision=34216
Diffstat (limited to 'a11y/calendar')
-rw-r--r--a11y/calendar/ea-cal-view-event.c3
-rw-r--r--a11y/calendar/ea-calendar-helpers.c3
-rw-r--r--a11y/calendar/ea-gnome-calendar.c3
3 files changed, 3 insertions, 6 deletions
diff --git a/a11y/calendar/ea-cal-view-event.c b/a11y/calendar/ea-cal-view-event.c
index 447b8cb650..9f7e694597 100644
--- a/a11y/calendar/ea-cal-view-event.c
+++ b/a11y/calendar/ea-cal-view-event.c
@@ -391,8 +391,7 @@ ea_cal_view_event_get_index_in_parent (AtkObject *accessible)
}
}
else {
- g_assert_not_reached ();
- return -1;
+ g_return_val_if_reached (-1);
}
return -1;
}
diff --git a/a11y/calendar/ea-calendar-helpers.c b/a11y/calendar/ea-calendar-helpers.c
index f7e4353fa8..caf1913829 100644
--- a/a11y/calendar/ea-calendar-helpers.c
+++ b/a11y/calendar/ea-calendar-helpers.c
@@ -152,8 +152,7 @@ ea_calendar_helpers_get_cal_view_event_from (GnomeCanvasItem *canvas_item)
cal_view_event = (ECalendarViewEvent *)week_view_event;
}
else {
- g_assert_not_reached ();
- return NULL;
+ g_return_val_if_reached (NULL);
}
return cal_view_event;
}
diff --git a/a11y/calendar/ea-gnome-calendar.c b/a11y/calendar/ea-gnome-calendar.c
index 09f8abcd9c..509d515f2d 100644
--- a/a11y/calendar/ea-gnome-calendar.c
+++ b/a11y/calendar/ea-gnome-calendar.c
@@ -234,8 +234,7 @@ ea_gnome_calendar_get_label_description (GnomeCalendar *gcal)
}
break;
default:
- g_assert_not_reached ();
- return NULL;
+ g_return_val_if_reached (NULL);
}
return buffer;
}