[Gtk-sharp-list] TreeView row editing.

Erik Bågfors erik@bagfors.nu
04 Sep 2003 09:27:34 +0200


Good.  Then you can tell me!  I tried this a few months ago with no luck
(well.. after 15 minutes of trying anyway)

/Erik

On Wed, 2003-09-03 at 21:32, Jason Boutwell wrote:
> Ixnay on that last question.
> 
> I finally figured out how to properly use the attributes of a cell
> renderer.
> 
> Jason
> 
> 
> On Wed, 2003-09-03 at 11:28, Jason Boutwell wrote:
> > Mike.
> > 
> > Thanks for the quick reply!
> > 
> > I ran across a few mails in the list that mention binding Colors in the
> > TreeView and then setting the Renderer, however I've been over and over
> > the API, and cannot seem to find the proper methods that suit this
> > purpose. Could you perhaps give me a quick snippet of code that
> > illustrates what you mean, or point me to the relevant API calls?
> > 
> > I appreciate your help.
> > 
> > Jason
> > 
> > 
> > On Tue, 2003-09-02 at 23:44, Mike Kestner wrote:
> > > On Tue, 2003-09-02 at 14:49, Jason Boutwell wrote:
> > > 
> > > > I need the ability to change the foreground color (text color) of
> > > > individual rows in my TreeView(s). Is there a way to do this? I see that
> > > > I can alter the foreground of CellRendererText objects, but I do not see
> > > > how I can access these renderer(s) on a per-row basis.
> > > 
> > > You need to add a color column to your tree/list store and bind it to
> > > the color property on the cell renderer.
> > 
> > _______________________________________________
> > Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
/Erik

-- 
erik@bagfors.nu
fingerprint: 6666 A85B 95D3 D26B 296B 6C60 4F32 2C0B 693D 6E32