diff options
author | Hyungdeuk Kim <hd3.kim@samsung.com> | 2013-04-12 10:24:20 +0900 |
---|---|---|
committer | Hyungdeuk Kim <hd3.kim@samsung.com> | 2013-04-12 10:24:20 +0900 |
commit | 46b82c6d162cea4d5560c82ae117b6a49b217bf8 (patch) | |
tree | f52f75280c1f395e5a439a3e14e4ad056aece973 | |
parent | 799d227d19ac183c6d6a44f2ec131ae46695c056 (diff) | |
download | ui-gadget-1-46b82c6d162cea4d5560c82ae117b6a49b217bf8.tar.gz ui-gadget-1-46b82c6d162cea4d5560c82ae117b6a49b217bf8.tar.bz2 ui-gadget-1-46b82c6d162cea4d5560c82ae117b6a49b217bf8.zip |
remve window profile changed cb for desktop mode
-rwxr-xr-x | client/ug-client.c | 7 | ||||
-rwxr-xr-x | packaging/ui-gadget-1.spec | 2 | ||||
-rwxr-xr-x | src/ug.c | 10 | ||||
-rwxr-xr-x | ug-efl-engine/ug-efl-engine.c | 3 |
4 files changed, 17 insertions, 5 deletions
diff --git a/client/ug-client.c b/client/ug-client.c index cb09e10..052587f 100755 --- a/client/ug-client.c +++ b/client/ug-client.c @@ -172,10 +172,10 @@ static void profile_changed_cb(void *data, Evas_Object * obj, void *event) { const char *profile = elm_config_profile_get(); + LOGE("!!! profile_changed_cb(%s) !!!", profile); + if (strcmp(profile, "desktop") == 0) elm_win_indicator_mode_set (obj, ELM_WIN_INDICATOR_HIDE); - else - elm_win_indicator_mode_set (obj, ELM_WIN_INDICATOR_SHOW); } static Evas_Object *create_win(const char *name) @@ -189,7 +189,8 @@ static Evas_Object *create_win(const char *name) elm_win_conformant_set(eo, EINA_TRUE); evas_object_smart_callback_add(eo, "delete,request", win_del, NULL); - evas_object_smart_callback_add(eo, "profile,changed", profile_changed_cb, NULL); + /* disable destktop mode + evas_object_smart_callback_add(eo, "profile,changed", profile_changed_cb, NULL); */ ecore_x_window_size_get(ecore_x_window_root_first_get(), &w, &h); evas_object_resize(eo, w, h); diff --git a/packaging/ui-gadget-1.spec b/packaging/ui-gadget-1.spec index e1074f9..8ba67e6 100755 --- a/packaging/ui-gadget-1.spec +++ b/packaging/ui-gadget-1.spec @@ -1,7 +1,7 @@ Name: ui-gadget-1 Summary: UI Gadget Library -Version: 0.1.20 +Version: 0.1.21 Release: 1 Group: System/Libraries License: Apache License, Version 2.0 @@ -281,3 +281,13 @@ UG_API int ug_disable_effect(ui_gadget_h ug) return 0; } + +UG_API int ug_is_installed(const char *name) +{ + if(name == NULL){ + _ERR("name is null"); + return -1; + } + + return ug_exist(name); +} diff --git a/ug-efl-engine/ug-efl-engine.c b/ug-efl-engine/ug-efl-engine.c index 49c8438..deb5312 100755 --- a/ug-efl-engine/ug-efl-engine.c +++ b/ug-efl-engine/ug-efl-engine.c @@ -268,7 +268,8 @@ static void on_destroy(ui_gadget_h ug, ui_gadget_h t_ug, } else if (ug->layout_state == UG_LAYOUT_HIDEEFFECT) { ; } else { - _ERR("[UG Effect Plug-in] : layout state error!!"); + _WRN("[UG Effect Plug-in] : layout state error!!"); + __del_effect_end(ug); } } |