From 3eef408912de9e67bdae61b22ae6aedf24085c1f Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 6 Mar 2013 18:52:56 -0500 Subject: EDayView: Hide data members which have accessor functions. It's a start... --- calendar/gui/ea-day-view.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'calendar/gui/ea-day-view.c') diff --git a/calendar/gui/ea-day-view.c b/calendar/gui/ea-day-view.c index 66f5cb3942..104466631b 100644 --- a/calendar/gui/ea-day-view.c +++ b/calendar/gui/ea-day-view.c @@ -219,6 +219,7 @@ ea_day_view_get_n_children (AtkObject *accessible) EDayView *day_view; GtkWidget *widget; gint day; + gint days_shown; gint child_num = 0; g_return_val_if_fail (EA_IS_DAY_VIEW (accessible), -1); @@ -228,10 +229,11 @@ ea_day_view_get_n_children (AtkObject *accessible) return -1; day_view = E_DAY_VIEW (widget); + days_shown = e_day_view_get_days_shown (day_view); child_num += day_view->long_events->len; - for (day = 0; day < day_view->days_shown; day++) { + for (day = 0; day < days_shown; day++) { child_num += day_view->events[day]->len; } -- cgit v1.2.3