Re: Gtk2::Ex::Simple::List using Gtk2::CellRendererCombo




On Oct 2, 2005, at 7:12 PM, ofey aikon wrote:

Does any one have snippets / example of a Gtk2::Ex::Simple::List using
Gtk2::CellRendererCombo ?

I found an example of Gtk2::TreeView using Gtk2::CellRendererCombo here
http://mail.gnome.org/archives/gtk-perl-list/2005-July/msg00065.html

And some more info here
http://mail.gnome.org/archives/gtk-perl-list/2005-May/msg00054.html

As seen in the second thread, you'll need to use Gtk2::Ex::Simple::List->add_column_type (...) to allow the constructor to know how to set up a column for your data. There are so many options on where to get the data for the combo model that we'll need more information to help you craft the one you need. The one discussed in that thread wanted to pull different values for each row (i think, i didn't reread carefully). If you just wanted to have the same small set of options every time, that would be easier.

Remember that you can make up your own subclass of CellRenderer (or CellRendererCombo) and tell the simplelist column to use your custom package. That will likely make things easier by giving you a hook into the creation of the new renderers.



--
I don't have a drinking problem,
'cept when i can't get drink.
  -- Tom Waits




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]