Add widget type check for support list 27/120727/4 accepted/tizen/unified/20170511.173634 accepted/tizen/unified/20170512.165237 submit/tizen/20170511.115134 submit/tizen/20170512.024705
authorKwangyoun Kim <ky85.kim@samsung.com>
Fri, 24 Mar 2017 02:31:56 +0000 (11:31 +0900)
committerKwangyoun Kim <ky85.kim@samsung.com>
Fri, 14 Apr 2017 01:17:23 +0000 (18:17 -0700)
Change-Id: I5190bf60207d5e0c82c22856d36901d094261d6f

src/vc_elm_core.c

index a30327322a9ed202c064540d87d4f2fa2f26f5ae..3c32ce785217aeceb5a420a6601217eb77aaa666 100644 (file)
@@ -1282,7 +1282,17 @@ static int __vc_add_commands_for_automode_vt_auto()
 
                                        char *widget_type = NULL;
                                        widget_type = elm_widget_type_get((Evas_Object*)grand->address);
-                                       VC_ELM_LOG_DBG("info(%s) parent(%s) grand(%s)", elm_widget_type_get((Evas_Object*)info->address), elm_widget_type_get((Evas_Object*)parent->address), elm_widget_type_get((Evas_Object*)grand->address));
+                                       while (NULL == widget_type) {
+                                               grand = ea_object_dump_parent_widget_data_get(grand);
+                                               if (NULL == grand) {
+                                                       break;
+                                               }
+                                               widget_type = elm_widget_type_get((Evas_Object*)grand->address);
+                                       }
+
+                                       VC_ELM_LOG_DBG("info(%s) parent(%s) grand(%s)", elm_widget_type_get((Evas_Object*)info->address), elm_widget_type_get((Evas_Object*)parent->address), widget_type);
+                                       // VC_ELM_LOG_DBG("info(%s) parent(%s) grand(%s)", evas_object_type_get((Evas_Object*)info->address), evas_object_type_get((Evas_Object*)parent->address), evas_object_type_get((Evas_Object*)grand->address));
+
                                        if (NULL != widget_type && (!strcmp(widget_type, "Elm_Genlist") || !strcmp(widget_type, "Elm_Gengrid") || !strcmp(widget_type, "Elm_List"))) {
                                                int x = info->geometry_info.x;
                                                int y = info->geometry_info.y;