Re: Accessing pair in Gtk::TreeModelColumn

2016-07-05 Thread Kamalpreet Grewal
Thank you Murray Cumming and D. B. :-) I love the help I get from this mailing list. -- Kamalpreet Kaur Grewal Blog: http://kamalpreetgrewal.com/ ___ gtkmm-list mailing list gtkmm-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtkmm-list

Re: Accessing pair in Gtk::TreeModelColumn

2016-07-01 Thread D. B.
Given that TreeValueProxy uses a conversion operator returning a const value of the template type, you simply need to tell the compiler to use that conversion operator, so that it doesn't try to invoke .first on the TreeValueProxy class itself. You should be able to simplify the existing suggestio

Re: Accessing pair in Gtk::TreeModelColumn

2016-07-01 Thread Murray Cumming
On Fr, 2016-07-01 at 15:14 +0530, Kamalpreet Grewal wrote: > I am making a pair as data type of Gtk::TreeModelColumn. > Gtk::TreeModelColumn > col; > > At some places I wish to get only first string of this pair. So I did > something like row[columns.col].first to access it. But I get an > error.