Creates a new MainLoop structure.
| context |
a MainContext (if null, the default context will be used). |
| is_running |
set to true to indicate that the loop is running. This is not very important since calling run will set this to true anyway. |
|
a new MainLoop. |