examples/custom_cellrenderer/DequeCellRendererText.cpp
//! Does the convertion of the std::deque to std::string
//! and updates the text property of the CellRendererText
//! and waits for the CellRendererText to render the text
//!

Does the convertion of the std::deque to std::string
and updates the text property of the CellRendererText
and waits for the CellRendererText to render the text
Does the convertion of the std :: deque to std :: string and updates the text property of the CellRendererText and waits for the CellRendererText to render the text
void
DequeCellRendererText::on_deque_change()
{
    std::deque<unsigned short> numbers = property_deque();
    Glib::ustring str = "";
    if (numbers.empty() == false)
    {
        str = std::to_string(numbers[0]);
        for (unsigned int it = 1; it < numbers.size(); ++it)
        {
            str += "," + std::to_string(numbers[it]);
        }
    }
    property_text() = str;
}
void DequeCellRendererText :: on_deque_change ( ) { std :: deque < unsigned short > numbers = property_deque ( ) ; Glib :: ustring str = " " ; if ( numbers . empty ( ) == false ) { str = std :: to_string ( numbers [ 0 ] ) ; for ( unsigned int it = 1 ; it < numbers . size ( ) ; ++ it ) { str += " " + std :: to_string ( numbers [ it ] ) ; } } property_text ( ) = str ; }
Does the convertion of the std::deque to std::string
and updates the text property of the CellRendererText
and waits for the CellRendererText to render the text
Does the convertion of the std :: deque to std :: string and updates the text property of the CellRendererText and waits for the CellRendererText to render the text
// Create the string with the deque values
 // If the deque isn't empty
 // Appends the first number to the string
 // If more numbers iterate and append them using "," as separator
 // Puts the string to the text property
