[poincare] Change Context API

Change-Id: I2818866fb41bf73c39396fbd85600e586a79065c
This commit is contained in:
Émilie Feral
2016-12-14 16:50:51 +01:00
parent 75948af80f
commit 7af3979d3b
74 changed files with 488 additions and 451 deletions

View File

@@ -190,7 +190,7 @@ bool CalculationController::textFieldDidReceiveEvent(TextField * textField, Ion:
bool CalculationController::textFieldDidFinishEditing(TextField * textField, const char * text) {
AppsContainer * appsContainer = (AppsContainer *)app()->container();
Context * globalContext = appsContainer->context();
Context * globalContext = appsContainer->globalContext();
float floatBody = Expression::parse(text)->approximate(*globalContext);
m_calculation.setParameterAtIndex(floatBody, m_highlightedSubviewIndex-1);
for (int k = 0; k < ContentView::k_maxNumberOfEditableFields; k++) {