diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-07-26 03:26:03 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-07-26 03:26:03 +0800 |
commit | ad465a7c1fbea59767741ae5e56a94b5f5f7c6a1 (patch) | |
tree | 94dcd12b95734f19931042ef8129f105a7cca9af /calendar/gui/ea-gnome-calendar.c | |
parent | a1e1732de6b64e68c6a30bd097485c00e36a8bec (diff) | |
download | gsoc2013-evolution-ad465a7c1fbea59767741ae5e56a94b5f5f7c6a1.tar gsoc2013-evolution-ad465a7c1fbea59767741ae5e56a94b5f5f7c6a1.tar.gz gsoc2013-evolution-ad465a7c1fbea59767741ae5e56a94b5f5f7c6a1.tar.bz2 gsoc2013-evolution-ad465a7c1fbea59767741ae5e56a94b5f5f7c6a1.tar.lz gsoc2013-evolution-ad465a7c1fbea59767741ae5e56a94b5f5f7c6a1.tar.xz gsoc2013-evolution-ad465a7c1fbea59767741ae5e56a94b5f5f7c6a1.tar.zst gsoc2013-evolution-ad465a7c1fbea59767741ae5e56a94b5f5f7c6a1.zip |
Re-enable building GnomeCalendar, except it doesn't yet.
Also, start trimming the API down a bit. Lots of redundancy there.
Diffstat (limited to 'calendar/gui/ea-gnome-calendar.c')
-rw-r--r-- | calendar/gui/ea-gnome-calendar.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |