if (icon && !this->_icon) {
elm_object_signal_emit(this->_layout, "elm,state,tabbar,icon,show", "viewmgr");
this->_icon = true;
- }
- else if (this->_icon) {
+ } else if (this->_icon) {
elm_object_signal_emit(this->_layout, "elm,state,tabbar,show", "viewmgr");
this->_icon = false;
}
if (evas_object_visible_get(this->_toolbar)) {
elm_toolbar_item_selected_set(it->_item, EINA_TRUE);
- }
- else {
+ } else {
this->_selectedItem = it;
}
for (int i = 0; i < count; i++)
{
- if (events[i].event_type < UI_APPLICATION_EVENT_CREATE)
- {
+ if (events[i].event_type < UI_APPLICATION_EVENT_CREATE) {
LOGE("events[%d] is invalid(%d)", i, events[i].event_type);
ret = UI_VIEWMGR_ERROR_INVALID_PARAMETER;
- }
- else
- {
+ } else {
app->set_event_cb(events[i].event_type, events[i].event_cb, user_data);
}
}
return capi_view->getTabIcon(id);
}
-EAPI const char *ui_tab_view_get_tab_label(ui_tab_view *view,int id)
+EAPI const char *ui_tab_view_get_tab_label(ui_tab_view *view, int id)
{
UiTabViewCapi *capi_view = validate_view(view);
if (!capi_view) return NULL;
if (this->_rotationCount > 0) {
*count = this->_rotationCount;
return this->_rotations;
- }
- else {
+ } else {
*count = MAX_NUM_OF_AVAILABLE_ROTATIONS;
return rots;
}
if (after == *it) {
//If the after is a last item of list, view has to push now.
auto it2 = it;
- if ((++it2) == this->_viewList.end())
- {
+ if ((++it2) == this->_viewList.end()) {
return this->_inst->pushView(view);
- }
- else
- {
+ } else {
this->_viewList.insert(++it, view);
return UI_VIEWMGR_ERROR_NONE;
}