From ad465a7c1fbea59767741ae5e56a94b5f5f7c6a1 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 25 Jul 2009 15:26:03 -0400 Subject: Re-enable building GnomeCalendar, except it doesn't yet. Also, start trimming the API down a bit. Lots of redundancy there. --- calendar/gui/ea-gnome-calendar.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'calendar/gui/ea-gnome-calendar.c') diff --git a/calendar/gui/ea-gnome-calendar.c b/calendar/gui/ea-gnome-calendar.c index e5d9654c1a..1cc75e5538 100644 --- a/calendar/gui/ea-gnome-calendar.c +++ b/calendar/gui/ea-gnome-calendar.c @@ -268,6 +268,8 @@ ea_gnome_calendar_ref_child (AtkObject *obj, gint i) { AtkObject * child = NULL; GnomeCalendar * calendarWidget; + GnomeCalendarViewType view_type; + ECalendarView *view; GtkWidget *childWidget; g_return_val_if_fail (EA_IS_GNOME_CALENDAR (obj), NULL); @@ -290,7 +292,9 @@ ea_gnome_calendar_ref_child (AtkObject *obj, gint i) break; case 1: /* for the day/week view */ - childWidget = gnome_calendar_get_current_view_widget (calendarWidget); + view_type = gnome_calendar_get_view (calendarWidget); + view = gnome_calendar_get_calendar_view (calendarWidget, view_type); + childWidget = GTK_WIDGET (view); child = gtk_widget_get_accessible (childWidget); atk_object_set_parent (child, obj); break; -- cgit v1.2.3