ios/mail: prevent a weird error appearing by not animating mail window

+ fix cython warning
This commit is contained in:
Mathieu Virbel 2012-03-13 17:41:18 +01:00
parent bc48d359e7
commit a3e533f1fc
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ IOS module is wrapping some part of the IOS features.
'''
from python_ref cimport Py_INCREF, Py_DECREF
from cpython cimport Py_INCREF, Py_DECREF
from os.path import basename
cdef extern from "ios_wrapper.h":

View file

@ -59,7 +59,7 @@ UIViewController *get_viewcontroller(void) {
}
[viewController becomeFirstResponder];
[viewController dismissModalViewControllerAnimated:YES];
[viewController dismissModalViewControllerAnimated:NO];
}
@end
@ -99,7 +99,7 @@ int ios_send_email(char *subject, char *text, char *mimetype, char *filename,
}
controller.modalPresentationStyle = UIModalPresentationPageSheet;
[viewController presentModalViewController:controller animated:YES];
[viewController presentModalViewController:controller animated:NO];
[controller release];
return 1;