I'm @ work now ( new job too ) so I can't spend time right now preparing an example, but I have this kind of functionality in Gtk3::Ex::DBI - http://tesla.duckdns.org/gtk3-ex-dbi/ - ( specifically in the Datasheet class ), where the list of items in a combo box are populated by a query, using a value or values from other cells as a filter. Look for stuff related to refresh_dynamic_combos in Gtk3::Ex::DBI::Datasheet. If you're still having issues with it, reply and I'll give you a hand tonight or ASAP.
Dan On Sat, May 16, 2015 at 3:39 AM, Williams, James P2 < james.p2.willi...@lmco.com> wrote: > I’m trying to create a tree view that lets the user edit items in one of > the columns. Items are either simple strings or picked from a list of > strings. To do this, I packed a text renderer and a combo box renderer > into that column. In the model, I added two Glib::Boolean columns, one to > control the “visible” attribute of each of these renderers. If the row is > of string type, only the text renderer will be visible, etc. > > > > The problem is in the combo box renderer, which should show a different > list of items for each row. How do I tell the renderer which model to use > for its list for a given row? I tried adding another column to the tree > view’s model, of type Glib::Scalar, and set to the right model for combo > box rows, and to undef for text renderer rows, but I can’t seem to get any > items to show up in the combo boxes. > > > > Thanks for the help, and for those who maintain this useful API. > > > > Jim > > _______________________________________________ > gtk-perl-list mailing list > gtk-perl-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-perl-list > >
_______________________________________________ gtk-perl-list mailing list gtk-perl-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-perl-list