remve window profile changed cb for desktop mode
authorHyungdeuk Kim <hd3.kim@samsung.com>
Fri, 12 Apr 2013 01:24:20 +0000 (10:24 +0900)
committerHyungdeuk Kim <hd3.kim@samsung.com>
Fri, 12 Apr 2013 01:24:20 +0000 (10:24 +0900)
client/ug-client.c
packaging/ui-gadget-1.spec
src/ug.c
ug-efl-engine/ug-efl-engine.c

index cb09e10..052587f 100755 (executable)
@@ -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);
index e1074f9..8ba67e6 100755 (executable)
@@ -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
index aac737b..579d8fc 100755 (executable)
--- 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);
+}
index 49c8438..deb5312 100755 (executable)
@@ -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);
        }
 }