raster pushed a commit to branch master.

http://git.enlightenment.org/apps/rage.git/commit/?id=07b8fcffdc0a4ae7ec5b52d3fe9a51051e880923

commit 07b8fcffdc0a4ae7ec5b52d3fe9a51051e880923
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Wed Aug 6 14:56:38 2014 +0900

    rage - if win isnt created - exit
---
 src/bin/main.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/bin/main.c b/src/bin/main.c
index 7f6ae4f..21ea6d5 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -77,6 +77,12 @@ elm_main(int argc, char **argv)
    elm_theme_overlay_add(NULL, buf);
 
    win = win_add();
+   if (!win)
+     {
+        printf("ERROR - cannto create window!\n");
+        goto end;
+     }
+
    evas_object_event_callback_add(win, EVAS_CALLBACK_RESIZE, _cb_resize, NULL);
    evas_object_resize(win, 320, 200);
 
@@ -98,6 +104,7 @@ elm_main(int argc, char **argv)
 
    elm_run();
 
+end:
    config_shutdown();
    elm_shutdown();
    return 0;

-- 


Reply via email to