ver = m_dao->getVersion();
bindtextdomain("ug-webapp-common-efl", "/usr/ug/res/locale");
addTitleText(gl,D_("IDS_COM_BODY_DETAILS_NAME"),
- m_localizedInfo.name.IsNull() ? "" :
- DPL::ToUTF8String((*m_localizedInfo.name)).c_str());
+ m_localizedInfo.name.IsNull() ? "" :
+ DPL::ToUTF8String((*m_localizedInfo.name)).c_str());
addTitleText(gl,U_("IDS_ST_BODY_VERSION"), ver.IsNull() ? "" :
- DPL::ToUTF8String((*ver)).c_str());
- //addTitleText(gl,U_("IDS_ST_BODY_DOMAIN_SECURITY_STATUS"),
- // m_dao->isTrusted() ? "Trusted" : "Untrusted");
+ DPL::ToUTF8String((*ver)).c_str());
+ addTitleText(gl,U_("IDS_ST_BODY_DOMAIN_SECURITY_STATUS"),
+ m_dao->isTrusted() ? "Trusted" : "Untrusted");
addTitleText(gl,D_("IDS_COM_BODY_DESCRIPTION"),
- m_localizedInfo.description.IsNull() ? "" :
- DPL::ToUTF8String((*m_localizedInfo.description)).c_str());
+ m_localizedInfo.description.IsNull() ? "" :
+ DPL::ToUTF8String((*m_localizedInfo.description)).c_str());
}
void DetailView::addViewModes(Evas_Object *gl)
Assert(gl);
try {
- detailData = new DetailData(this,
- title,
- DPL::ToUTF8String(
- *m_localizedInfo.license).c_str());
- itc.item_style = "dialogue/1text";
- itc.func.text_get =getTitle ;
- itc.func.content_get = NULL;
- itc.func.state_get = NULL;
- itc.func.del = NULL;
+ detailData = new DetailData(
+ this,
+ title,
+ m_localizedInfo.license.IsNull() ?
+ "" : DPL::ToUTF8String((*m_localizedInfo.license)).c_str());
+ itc.item_style = "dialogue/1text";
+ itc.func.text_get =getTitle ;
+ itc.func.content_get = NULL;
+ itc.func.state_get = NULL;
+ itc.func.del = NULL;
- it = elm_genlist_item_append(gl,
- &itc,
- static_cast<void *>(detailData),
- NULL,
- ELM_GENLIST_ITEM_NONE,
- viewlicenseCallback,
- static_cast<void *>(detailData));
+ it = elm_genlist_item_append(gl,
+ &itc,
+ static_cast<void *>(detailData),
+ NULL,
+ ELM_GENLIST_ITEM_NONE,
+ viewlicenseCallback,
+ static_cast<void *>(detailData));
+ if (m_localizedInfo.license.IsNull()) {
+ elm_object_item_disabled_set(it, EINA_TRUE);
+ }
} catch (const std::bad_alloc &) {
}
}