diff options
Diffstat (limited to 'calendar/gui/e-calendar-table.c')
-rw-r--r-- | calendar/gui/e-calendar-table.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c index 536051ea1f..0fa5bc6f84 100644 --- a/calendar/gui/e-calendar-table.c +++ b/calendar/gui/e-calendar-table.c @@ -2,9 +2,10 @@ /* * Author : - * Damon Chaplin <damon@helixcode.com> + * Damon Chaplin <damon@ximian.com> * * Copyright 2000, Helix Code, Inc. + * Copyright 2000, Ximian, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -335,6 +336,24 @@ e_calendar_table_new (void) } +/** + * e_calendar_table_get_model: + * @cal_table: A calendar table. + * + * Queries the calendar data model that a calendar table is using. + * + * Return value: A calendar model. + **/ +CalendarModel * +e_calendar_table_get_model (ECalendarTable *cal_table) +{ + g_return_val_if_fail (cal_table != NULL, NULL); + g_return_val_if_fail (E_IS_CALENDAR_TABLE (cal_table), NULL); + + return cal_table->model; +} + + static void e_calendar_table_destroy (GtkObject *object) { @@ -345,6 +364,9 @@ e_calendar_table_destroy (GtkObject *object) gtk_object_unref (GTK_OBJECT (cal_table->model)); cal_table->model = NULL; + gtk_object_unref (GTK_OBJECT (cal_table->subset_model)); + cal_table->subset_model = NULL; + GTK_OBJECT_CLASS (parent_class)->destroy (object); } |