Gtk::TreeRow to default starting value

hi

i have custom combo actualy as template that uses diferent columns. i also have callback in it for checking if user changed value …but i dont know how to initialize old value and at first change i get exception. how to initialize it ? couse it contains something at start ..i need some default when user makes his first change

Gtk::TreeRow previousChoice ; //should have initialization

i need to know it is somehow invalid for first use or valid at later uses.

Not sure if this what you are looking for:

gtkmm4: Gtk::TreeConstRow::operator bool() const; // TreeConstRow is a base class of TreeRow
gtkmm3: Gtk::TreeIter::operator bool() const; // TreeIter is a base class of TreeRow

operator bool() shows if the TreeRow is valid.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.