static void e_cal_list_view_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec) { ECalListView *eclv = E_CAL_LIST_VIEW (object); switch (property_id) { case PROP_IS_EDITING: g_value_set_boolean (value, e_cal_list_view_is_editing (eclv)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); break; } }
/* Prints the calendar at its current view and time range */ void calendar_command_print (GnomeCalendar *gcal, GtkPrintOperationAction action) { if (gnome_calendar_get_view (gcal) == GNOME_CAL_LIST_VIEW) { ECalListView *list_view; ETable *table; list_view = E_CAL_LIST_VIEW (gnome_calendar_get_current_view_widget (gcal)); table = e_table_scrolled_get_table (list_view->table_scrolled); print_table (table, _("Print"), _("Calendar"), action); } else { time_t start; gnome_calendar_get_current_time_range (gcal, &start, NULL); print_calendar (gcal, action, start); } }