summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyungki Lee <mk5004.lee@samsung.com>2016-02-03 09:04:17 +0900
committerMyungki Lee <mk5004.lee@samsung.com>2016-02-03 09:04:17 +0900
commitb66e54ea45b0b5042c66043a54f319e034527dae (patch)
tree55eb2fe14fdda84d1b1636005fcaa1584d4eee0f
parent19a7041dbd7726f24cc6eff689f6ff849320ecd6 (diff)
downloadapplication-b66e54ea45b0b5042c66043a54f319e034527dae.tar.gz
application-b66e54ea45b0b5042c66043a54f319e034527dae.tar.bz2
application-b66e54ea45b0b5042c66043a54f319e034527dae.zip
Remove a ui_app_get_default_window api
Change-Id: I803be40e06676b0a0961424be7f75d54b059471b Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
-rw-r--r--include/app.h23
-rw-r--r--src/app_main.c22
2 files changed, 0 insertions, 45 deletions
diff --git a/include/app.h b/include/app.h
index d32a158..be26f5c 100644
--- a/include/app.h
+++ b/include/app.h
@@ -223,29 +223,6 @@ int ui_app_add_event_handler(app_event_handler_h *event_handler, app_event_type_
*/
int ui_app_remove_event_handler(app_event_handler_h event_handler);
-/**
- * @brief Gets the preinitialized window object.
- *
- * @details This function returns a window object that is created by the framework.
- * You can get the handle of the preinitialized window using this API.
- * Because the window is preinitialized, you can speed up your application's launching time.
- * @since_tizen 3.0
- * @remarks When you set @a preinit-window attribute of the @a ui-application tag as "#true" in the tizen-manifest.xml,
- * the framework creates an window for your application beforehand.
- * Note that the preinitialized window is created using elm_win_add() as #ELM_WIN_BASIC type.
- * If you want to use a window of other types, you cannot use this API.
- *
- * The specific error code can be obtained using the get_last_result() method.
- * Error codes are described in Exception section.
- * @param[in] win_name The name to be set for the preinitialized window
- *
- * @return A @a window object on success,
- * otherwise @c NULL
- * @exception TIZEN_ERROR_NONE Success
- * @exception TIZEN_ERROR_INVALID_PARAMETER Invalid parameter
- * @exception TIZEN_ERROR_IO_ERROR I/O error
- */
-void *ui_app_get_default_window(const char *win_name);
/**
* @}
diff --git a/src/app_main.c b/src/app_main.c
index 83451e3..6ca4bcc 100644
--- a/src/app_main.c
+++ b/src/app_main.c
@@ -801,25 +801,3 @@ int ui_app_remove_event_handler(app_event_handler_h event_handler)
return app_error(APP_ERROR_INVALID_PARAMETER, __FUNCTION__, "cannot find such handler");
}
-void *ui_app_get_default_window(const char *win_name)
-{
- Evas_Object *win;
-
- if (win_name == NULL) {
- set_last_result(TIZEN_ERROR_INVALID_PARAMETER);
- return NULL;
- }
-
- win = (Evas_Object *)app_get_preinitialized_window(win_name);
- if (win == NULL) {
- win = elm_win_add(NULL, win_name, ELM_WIN_BASIC);
- if (win == NULL) {
- set_last_result(TIZEN_ERROR_IO_ERROR);
- LOGE("failed to get window");
- return NULL;
- }
- }
-
- set_last_result(TIZEN_ERROR_NONE);
- return win;
-}