Re: CellRendererCombo
- From: Dan <dan entropy homelinux org>
- To: muppet <scott asofyet org>, gtk-perl-list gnome org
- Cc:
- Subject: Re: CellRendererCombo
- Date: Mon, 23 May 2005 10:19:44 +1000
muppet wrote:
Is the renderer supposed to automatically select the right row by
comparing the value in the treestore's model with the value in the
combo's model, or am I supposed to write something that does that? I'm a
little lost at the moment.
No. Until the user starts editing the cell, a CellRendererCombo is no
different from a CellRendererText. To choose the text to display in
the cell, set the "text" property. The additional functionality of
CellRendererCombo isn't even enabled unless you set "editable" =>
TRUE, and then the model only gives you a list of things from which to
choose.
Thanks muppet :)
I've worked your example into Gtk2::Ex::Datasheet::DBI. I'm a little
unsure if I've gone about it the right way, but it has the overall
effect I'm after.
Your help is very much appreciated.
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]