void IntSetCellRenderer::valueChanged() { Glib::ustring s; std::set<int> v = propertyValue(); for (std::set<int>::const_iterator it = v.begin(); it != v.end(); ++it) { s += ToString(*it); if (*it != *v.rbegin()) s += "|"; } property_text() = s; property_foreground() = (v.size() > 1) ? "gray" : "black"; }
void BugzillaLink::initialize(const std::string & element_name) { gnote::DynamicNoteTag::initialize(element_name); property_underline() = Pango::UNDERLINE_SINGLE; property_foreground() = "blue"; set_can_activate(true); set_can_grow(true); set_can_spell_check(false); set_can_split(false); }
void DimTypeCellRenderer::statsChanged() { int usageCount = propertyUsageCount(); int totalRegions = propertyTotalRegions(); bool bDimensionExistsOnAllRegions = (usageCount == totalRegions); property_foreground() = ((bDimensionExistsOnAllRegions) ? "black" : "gray"); }