widgets in cell renderer
- From: Tomas Carnecky <tom dbservice com>
- To: gtk-app-devel-list gnome org
- Subject: widgets in cell renderer
- Date: Fri, 25 Jan 2008 22:30:07 +0100
I'm working on a fairly complex cell renderer, with text, progress bars,
buttons, etc. Since th cell renderer is not a widget, but only a simple
renderer, I have to paint it all by myself, using gtk_paint_box(),
gdk_draw_pixbuf(), gtk_paint_layout() etc. Now it's getting ugly and I
thought about creating a normal GtkButton and then call the _paint()
function to paint it into the cell renderer. But that is not easy since
no _paint function is exposed through the official API. So I though
about calling klass->expose_event() but that leads to problems and/or
crashes. I really don't want to duplicate button and other paint code
inside my cell renderer, is there really no way of using the standard
gtk widgets and draw them inside a cell area?
thanks
tom
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]