[Gtk-sharp-list] Making a cellrendertext editable, how?
George Farris
george@gmsys.com
Fri, 12 Nov 2004 15:23:23 -0800
On Fri, 2004-12-11 at 17:07 -0500, Peter Williams wrote:
> On Fri, 2004-11-12 at 13:55 -0800, George Farris wrote:
> > george@ve7frg:~/Projects/gfax $ make
> > mcs /define:DEBUG /resource:./glade/gfax.glade,gfax.glade /resource:./glade/send-druid.glade,send-druid.glade /resource:./pixmaps/gfax.png,gfax.png /resource:./pixmaps/send.png,send.png -o mono-gfax.exe src/phonebook.cs src/gui.cs src/main.cs src/guitools.cs src/sendphonebook.cs src/fax.cs src/hylafax.cs src/Settings.cs -r gnome-sharp -r gtk-sharp -r glib-sharp -r glade-sharp -r gdk-sharp -r gconf-sharp -r gconf-sharp-peditors.dll
> > src/guitools.cs(309) error CS0117: `Gtk.CellRenderer' does not contain a
> > definition for `Editable'
> > Compilation failed: 1 error(s), 0 warnings
> > make: *** [mono-gfax.exe] Error 1
>
> You probably need to declare the variable 'text' as a CellRendererText,
> not just a CellCenderer. Or alternatively,
>
> ((CellRendererText) text).Editable = true;
>
> Peter
>
OOPS of course, it was declared way further up in the code and over a
year ago. Must have been a brain fart.
Now to get the changes to stick when they are edited...
Thanks
--
George Farris
george@gmsys.com