editor: do not crash when text input manager is not available

[Pekka Paalanen: whitespace fix]

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Olivier Blin 2014-09-16 19:13:17 +02:00 committed by Pekka Paalanen
parent 814f0ee5a6
commit 30e1f3c311
1 changed files with 5 additions and 0 deletions

View File

@ -1359,6 +1359,11 @@ main(int argc, char *argv[])
display_set_user_data(editor.display, &editor);
display_set_global_handler(editor.display, global_handler);
if (editor.text_input_manager == NULL) {
fprintf(stderr, "No text input manager global\n");
return -1;
}
editor.window = window_create(editor.display);
editor.widget = window_frame_create(editor.window, &editor);