Add new access operation. To reset the focus chain
authorSung-jae Park <nicesj.park@samsung.com>
Mon, 9 Dec 2013 11:18:09 +0000 (20:18 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Mon, 9 Dec 2013 11:18:09 +0000 (20:18 +0900)
Change-Id: I93f99a9a7ed8ae46e0ed65096222baea57a14d21

packaging/liblivebox-edje.spec
src/script_port.c

index 27f3e34..9880706 100644 (file)
@@ -1,6 +1,6 @@
 Name: liblivebox-edje
 Summary: EDJE Script loader for the data provider master
-Version: 0.5.28
+Version: 0.5.29
 Release: 1
 Group: HomeTF/Livebox
 License: Flora
index 4a25bd0..335b8af 100644 (file)
@@ -572,7 +572,7 @@ PUBLIC int script_update_access(void *_h, Evas *e, const char *id, const char *p
                if (ao) {
                        if (text && strlen(text)) {
                                elm_access_info_set(ao, ELM_ACCESS_INFO, text);
-                               DbgPrint("Access info is updated: [%s]\n", text);
+                               DbgPrint("Access info is updated: %s [%s], %p\n", part, text, ao);
                        } else {
                                /*!
                                 * \note
@@ -599,7 +599,7 @@ PUBLIC int script_update_access(void *_h, Evas *e, const char *id, const char *p
                                elm_object_focus_custom_chain_append(handle->parent, ao, NULL);
                                elm_access_activate_cb_set(ao, activate_cb, NULL);
                                evas_object_event_callback_add(ao, EVAS_CALLBACK_DEL, access_del_cb, handle);
-                               DbgPrint("[%s] Register access info: (%s) to, %p\n", part, text, handle->parent);
+                               DbgPrint("[%s] Register access info: (%s) to, %p (%p)\n", part, text, handle->parent, ao);
                        }
                }
        } else {
@@ -683,6 +683,8 @@ PUBLIC int script_operate_access(void *_h, Evas *e, const char *id, const char *
                if (ret == EINA_FALSE) {
                        ErrPrint("Action error\n");
                }
+       } else if (!strcasecmp(operation, "reset,focus")) {
+               elm_object_focus_custom_chain_set(edje, NULL);
        }
 
 out: