parent = ETK_WIDGET(label); while(parent) { printf("PARENT type: %s\n",ETK_OBJECT(parent)->type->name); text_style = edje_object_data_get(tmp_parent->theme_object, "text_style"); printf("TEXT STYLE FOUND"); if(text_style) break; if ((tmp_parent = etk_widget_theme_parent_get(parent))) { text_style = edje_object_data_get(tmp_parent->theme_object, "text_style"); printf("TEXT STYLE FOUND"); if(text_style) break; } printf("NEXT PARENT\n"); parent = etk_widget_parent_get(parent); }