Change parent of widget access object to widget_content 97/135097/5
authorjunkyu han <junkyu.han@samsung.com>
Wed, 21 Jun 2017 02:15:53 +0000 (11:15 +0900)
committerjunkyu han <junkyu.han@samsung.com>
Wed, 21 Jun 2017 04:51:27 +0000 (13:51 +0900)
Change-Id: I3e1892f4388cc4122f62d9b551cb7ede4326f51a

src/add_widget_viewer/add_widget_viewer.c
src/cluster_page.c

index ae0d4ba..cb05267 100755 (executable)
@@ -688,8 +688,8 @@ static void __add_widget_viewer_insert_widget(const char *id, const char *label,
        char *widget_id = strdup(id);
        char *widget_label = strdup(label);
 
-       cluster_view_set_state(VIEW_STATE_NORMAL);
        cluster_data_insert_widget(widget_id, widget_label, content_info, type);
+       cluster_view_set_state(VIEW_STATE_NORMAL);
 
        free(widget_id);
        free(widget_label);
index 3ac9a5a..3b8ff83 100755 (executable)
@@ -204,8 +204,8 @@ void cluster_page_get_access_widget_list(cluster_page_t *page_t, Eina_List **lis
        EINA_LIST_FOREACH(page_t->widget_list, find_list, item) {
                access_info_t *info = (access_info_t *)malloc(sizeof(access_info_t));
                info->is_access_obj = EINA_FALSE;
-               info->target = item->widget_layout;
-               info->parent = page_t->page_layout;
+               info->target = is_edit ? item->widget_layout : item->widget_content;
+               info->parent = item->widget_content;
                info->name = strdup(item->widget_label);
                info->description = strdup(_("IDS_BR_BODY_DOUBLE_TAP_AND_HOLD_THEN_DRAG_TO_REORDER_TTS"));
                info->role = ELM_ATSPI_ROLE_UNKNOWN;