summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHyungdeuk Kim <hd3.kim@samsung.com>2013-04-12 01:24:20 (GMT)
committerHyungdeuk Kim <hd3.kim@samsung.com>2013-04-12 01:24:20 (GMT)
commit46b82c6d162cea4d5560c82ae117b6a49b217bf8 (patch)
treef52f75280c1f395e5a439a3e14e4ad056aece973
parent799d227d19ac183c6d6a44f2ec131ae46695c056 (diff)
downloadui-gadget-1-46b82c6d162cea4d5560c82ae117b6a49b217bf8.zip
ui-gadget-1-46b82c6d162cea4d5560c82ae117b6a49b217bf8.tar.gz
ui-gadget-1-46b82c6d162cea4d5560c82ae117b6a49b217bf8.tar.bz2
remve window profile changed cb for desktop mode
-rwxr-xr-xclient/ug-client.c7
-rwxr-xr-xpackaging/ui-gadget-1.spec2
-rwxr-xr-xsrc/ug.c10
-rwxr-xr-xug-efl-engine/ug-efl-engine.c3
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
diff --git a/src/ug.c b/src/ug.c
index aac737b..579d8fc 100755
--- a/src/ug.c
+++ b/src/ug.c
@@ -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);
}
}