projects
/
platform
/
core
/
appfw
/
app-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change return value type of the appcore_ui_base_group_add function
[platform/core/appfw/app-core.git]
/
src
/
ui_base
/
appcore_ui_base.c
diff --git
a/src/ui_base/appcore_ui_base.c
b/src/ui_base/appcore_ui_base.c
index
e53466b
..
e3a545b
100644
(file)
--- a/
src/ui_base/appcore_ui_base.c
+++ b/
src/ui_base/appcore_ui_base.c
@@
-800,22
+800,29
@@
static void __group_lower()
appcore_ui_base_group_remove();
}
appcore_ui_base_group_remove();
}
-EXPORT_API
void
appcore_ui_base_group_add()
+EXPORT_API
int
appcore_ui_base_group_add()
{
static bool attached = false;
{
static bool attached = false;
+ int ret;
_DBG("__group_attach");
if (attached)
_DBG("__group_attach");
if (attached)
- return;
+ return
0
;
int wid = __get_main_surface();
if (wid == 0) {
_ERR("window wasn't ready");
int wid = __get_main_surface();
if (wid == 0) {
_ERR("window wasn't ready");
- return;
+ return -1;
+ }
+
+ ret = aul_app_group_set_window(wid);
+ if (ret < 0) {
+ _ERR("Failed to set app group window. error(%d)", ret);
+ return ret;
}
}
- aul_app_group_set_window(wid);
attached = true;
attached = true;
+ return 0;
}
EXPORT_API void appcore_ui_base_group_remove()
}
EXPORT_API void appcore_ui_base_group_remove()