aboutsummaryrefslogtreecommitdiffstats
path: root/a11y/calendar/ea-day-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'a11y/calendar/ea-day-view.c')
-rw-r--r--a11y/calendar/ea-day-view.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/a11y/calendar/ea-day-view.c b/a11y/calendar/ea-day-view.c
index 7f5926e9a6..49b7a123ed 100644
--- a/a11y/calendar/ea-day-view.c
+++ b/a11y/calendar/ea-day-view.c
@@ -27,6 +27,7 @@
#include "ea-cal-view-event.h"
#include "ea-calendar-helpers.h"
+#include "ea-gnome-calendar.h"
#include "calendar-commands.h"
#include <glib/gstrfuncs.h>
#include <libgnome/gnome-i18n.h>
@@ -137,12 +138,12 @@ ea_day_view_get_name (AtkObject *accessible)
day_view = E_DAY_VIEW (GTK_ACCESSIBLE (accessible)->widget);
gcal = e_calendar_view_get_calendar (E_CALENDAR_VIEW (day_view));
- label_text = calendar_get_text_for_folder_bar_label (gcal);
+ label_text = ea_gnome_calendar_get_label_description (gcal);
n_events = atk_object_get_n_accessible_children (accessible);
/* the child main item is always there */
--n_events;
- if (n_events = 1)
+ if (n_events == 1)
g_snprintf (buffer, sizeof (buffer),
_(", %d event"), n_events);
if (n_events > 1)