On Sun, 2008-09-21 at 21:30 -0400, Andrew Smith wrote:
 
> >> A custom cell renderer (as in 
> >> http://scentric.net/tutorial/sec-custom-cell-renderers.html ) seems to 
> >> be a lot of work, apparently I have to render the button myself.. but I 
> >> may be misunderstanding.
> > 
> > no, you understood correctly: you need to write a custom cell renderer
> > that draws a button.
> > 
> > ciao,
> >  Emmanuele.
> > 
> Ok, so does that mean I'll have to reimplement GtkButton? That's why I 
> say it seems to be a lot of work.

you don't need to reimplement *all* GtkButton - mostly the gtk_paint
calls to make it possible for themes to actually paint your cell
renderer like a button.

> Or can I use a GtkButton in a cell renderer?

no, you can't.

> Is there a tutorial or some sample code somewhere anyone knows of that 
> could help me figure this out?

not that I know of; you can have a look at how the toggle cell renderer
works - it's basically all you need to implement a button.

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to