diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2016-06-28 09:03:45 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2016-06-28 09:21:36 +0900 |
commit | c5acb604a2dcc6c17759ac9b9a2f1f82466ec28d (patch) | |
tree | baeb08aa4be852a454fbe4ec5919e2d61e8aa239 | |
parent | 512367fe548ab97b1868290915a51e211b27ff6e (diff) | |
download | syspopup-c5acb604a2dcc6c17759ac9b9a2f1f82466ec28d.tar.gz syspopup-c5acb604a2dcc6c17759ac9b9a2f1f82466ec28d.tar.bz2 syspopup-c5acb604a2dcc6c17759ac9b9a2f1f82466ec28d.zip |
Fix the syspopup_create API
- eff_util_set_notification_window_level() needs the
"http://tizen.org/privilege/window.priority.set" privilege.
Change-Id: Id380c3b7e509407ac4e1b6f165abe1a483d9530c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rwxr-xr-x | include/syspopup.h | 1 | ||||
-rwxr-xr-x | syspopup-app/org.tizen.syspopup-app.xml.in | 3 | ||||
-rw-r--r-- | syspopup/syspopup_wayland.c | 8 |
3 files changed, 11 insertions, 1 deletions
diff --git a/include/syspopup.h b/include/syspopup.h index 371dd0c..0478d10 100755 --- a/include/syspopup.h +++ b/include/syspopup.h @@ -83,6 +83,7 @@ typedef struct _syspopup_handler syspopup_handler; * and set system popup properties based on system popup information DB.\n * system popup properties to be set : timeout, default action type, .... * + * @privilege %http://tizen.org/privilege/window.priority.set * @param[in] b bundle received by app_reset handler (included system popup name) * @param[in] handler user-supplied handler for handling system popup internal event. * @param[in] parent parent window created with elm_win_add. diff --git a/syspopup-app/org.tizen.syspopup-app.xml.in b/syspopup-app/org.tizen.syspopup-app.xml.in index 1fe95dc..6e21a3c 100755 --- a/syspopup-app/org.tizen.syspopup-app.xml.in +++ b/syspopup-app/org.tizen.syspopup-app.xml.in @@ -6,4 +6,7 @@ <ui-application appid="org.tizen.syspopup-app" exec="/usr/bin/syspopup-app" nodisplay="true" multiple="false" type="capp" taskmanage="false"> <label>syspopup-app</label> </ui-application> + <privileges> + <privilege>http://tizen.org/privilege/window.priority.set</privilege> + </privileges> </manifest> diff --git a/syspopup/syspopup_wayland.c b/syspopup/syspopup_wayland.c index 89d46bb..fcfe26e 100644 --- a/syspopup/syspopup_wayland.c +++ b/syspopup/syspopup_wayland.c @@ -122,6 +122,7 @@ int wl_syspopup_reset(bundle *b) syspopup *sp; Ecore_Wl_Window *wl_win; efl_util_notification_level_e level; + int ret; popup_name = _syspopup_get_name_from_bundle(b); if (popup_name == NULL) @@ -145,7 +146,12 @@ int wl_syspopup_reset(bundle *b) ecore_wl_window_type_set(wl_win, ECORE_WL_WINDOW_TYPE_NOTIFICATION); level = __wl_syspopup_get_notification_level(info->prio); - efl_util_set_notification_window_level(sp->win, level); + ret = efl_util_set_notification_window_level(sp->win, level); + if (ret != EFL_UTIL_ERROR_NONE) { + _E("Failed to set notification window level - %d", ret); + return -1; + } + if (info->focus) ecore_wl_window_focus_skip_set(wl_win, EINA_TRUE); |