Change main loop APIs 43/125043/1 accepted/tizen/3.0/common/20170510.183000 accepted/tizen/3.0/ivi/20170509.223005 accepted/tizen/3.0/mobile/20170509.222930 accepted/tizen/3.0/tv/20170509.222935 accepted/tizen/3.0/wearable/20170509.222959 submit/tizen_3.0-common/20170510.074450 submit/tizen_3.0/20170414.010752 submit/tizen_3.0_common/20170510.075013
authorJunghoon Park <jh9216.park@samsung.com>
Thu, 13 Apr 2017 11:46:41 +0000 (20:46 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Thu, 13 Apr 2017 11:48:42 +0000 (20:48 +0900)
 - Use elm_run instead of ecore_main_loop_begin

Change-Id: I613edea999586a27d20eee506aabfcb66bb694fa
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
src/widget_app.c

index 5995238..384f0cd 100755 (executable)
@@ -1039,6 +1039,13 @@ static void __after_loop()
        }
 
        elm_shutdown();
+
+       /* Check loader case */
+       if (getenv("AUL_LOADER_INIT")) {
+               unsetenv("AUL_LOADER_INIT");
+               elm_shutdown();
+       }
+
 }
 
 static void __on_low_memory(keynode_t *key, void *data)
@@ -1221,7 +1228,7 @@ EXPORT_API int widget_app_main(int argc, char **argv,
                return r;
        }
 
-       ecore_main_loop_begin();
+       elm_run();
        aul_status_update(STATUS_DYING);
        __after_loop();
 
@@ -1240,7 +1247,7 @@ EXPORT_API int widget_app_exit(void)
 
        exit_called = 1;
 
-       ecore_main_loop_quit();
+       elm_exit();
 
        return WIDGET_ERROR_NONE;
 }