diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-03-07 07:52:56 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-03-17 20:49:12 +0800 |
commit | 3eef408912de9e67bdae61b22ae6aedf24085c1f (patch) | |
tree | 6546b786d4ff554e0d3c4aa2022de1460ecd9d12 /calendar/gui/ea-day-view.c | |
parent | 891a1fecc6bd55562b074da27b90121feb769d9b (diff) | |
download | gsoc2013-evolution-3eef408912de9e67bdae61b22ae6aedf24085c1f.tar.gz gsoc2013-evolution-3eef408912de9e67bdae61b22ae6aedf24085c1f.tar.zst gsoc2013-evolution-3eef408912de9e67bdae61b22ae6aedf24085c1f.zip |
EDayView: Hide data members which have accessor functions.
It's a start...
Diffstat (limited to 'calendar/gui/ea-day-view.c')
-rw-r--r-- | calendar/gui/ea-day-view.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |