Re: looking for CellRendererCombo example
- From: muppet <scott asofyet org>
- To: gtk-perl list <gtk-perl-list gnome org>
- Subject: Re: looking for CellRendererCombo example
- Date: Sun, 18 Apr 2004 22:49:26 -0400
On Sunday, April 18, 2004, at 04:37 PM, Jens Wilke wrote:
is there any example or some code out there, that implements a Combo
as a CellRenderer in a TreeView?
One of the examples included with the Gtk2 module's source code,
cellrenderer_popup.pl[1], implements a cell renderer with a popup menu,
drawn as an OptionMenu.
You can turn off the option-menu appearance by setting show-box to
false. Due to the way cell editing is triggered, you have to select
the row before a click will pop up the menu.
If you want an editable combo box, instead, then you'll have to create
a Gtk2::Combo or Gtk2::ComboBox subclass that implements the
Gtk2::CellEditable interface; have a look at customrenderer.pl[2] for
inspiration.
[1]
http://cvs.sourceforge.net/viewcvs.py/gtk2-perl/gtk2-perl-xs/Gtk2/
examples/cellrenderer_popup.pl?rev=1.7&view=markup
[2]
http://cvs.sourceforge.net/viewcvs.py/gtk2-perl/gtk2-perl-xs/Gtk2/
examples/customrenderer.pl?rev=1.2&view=markup
--
Eight, eight, eight, eight ounces to gooooo, you're gonna be sedated!
-- Elysse, singing while feeding rice cereal formula to
fussy infant Yvonne
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]