From 34ea33bd98de00ba9520595febadea97233fb345 Mon Sep 17 00:00:00 2001 From: Junghoon Park Date: Mon, 20 Mar 2017 15:46:08 +0900 Subject: [PATCH] Support legacy APIs for internal TC Change-Id: I527bfb417536d8ffb87a40132fc186b9afe02972 Signed-off-by: Junghoon Park --- src/app_resource.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 46 insertions(+), 4 deletions(-) diff --git a/src/app_resource.c b/src/app_resource.c index c78c223..5ab9a16 100644 --- a/src/app_resource.c +++ b/src/app_resource.c @@ -14,20 +14,62 @@ * limitations under the License. */ -#include +#include +#include "app_extension.h" + +static void __set_preinit_window_name(const char *win_name, void *win) +{ + const Evas *e; + Ecore_Evas *ee; + + if (!win_name || !win) + return; + + e = evas_object_evas_get((const Evas_Object *)win); + if (e) { + ee = ecore_evas_ecore_evas_get(e); + if (ee) + ecore_evas_name_class_set(ee, win_name, win_name); + } +} void *app_get_preinitialized_window(const char *win_name) { - return NULL; + void *win; + + win = elm_win_precreated_object_get(); + if (win == NULL) + return NULL; + + __set_preinit_window_name(win_name, win); + elm_win_precreated_object_set(NULL); + + return win; } void *app_get_preinitialized_background(void) { - return NULL; + void *background; + + background = elm_bg_precreated_object_get(); + if (background == NULL) + return NULL; + + elm_bg_precreated_object_set(NULL); + + return background; } void *app_get_preinitialized_conformant(void) { - return NULL; + void *conformant; + + conformant = elm_conformant_precreated_object_get(); + if (conformant == NULL) + return NULL; + + elm_conformant_precreated_object_set(NULL); + + return conformant; } -- 2.7.4