void PluginDisplay::display_type(Gtk::CellRenderer *cell, const Gtk::TreeIter& it) { PortDesc *q = it->get_value(port_liststore->col.port); Gtk::CellRendererText *tcell = dynamic_cast<Gtk::CellRendererText*>(cell); if (q->is_set(ChangeableValues::tp_set)) { tcell->property_foreground().set_value("red"); } else { tcell->property_foreground_set().set_value(false); } }
void PluginDisplay::display_upper(Gtk::CellRenderer *cell, const Gtk::TreeIter& it) { PortDesc *q = it->get_value(port_liststore->col.port); Gtk::CellRendererText *tcell = dynamic_cast<Gtk::CellRendererText*>(cell); tcell->property_foreground_set().set_value(false); tcell->property_background_set().set_value(false); DisplayType tp = q->get_tp(); if (tp == tp_toggle || tp == tp_display_toggle || tp == tp_none) { cell->property_visible().set_value(false); return; } cell->property_visible().set_value(true); if (q->is_set(ChangeableValues::up_set)) { tcell->property_foreground().set_value("red"); } else if (q->fake_up) { tcell->property_background().set_value("grey"); } }