Re: GtkCellRenderer



Hi,

sinsedrix voila fr writes:

> I'm getting problems to draw GDK_PIXBUF in a TreeView because
> usually, to draw something I use the "expose_event" signal with a
> drawing callback but in this case GdkPixbuf and
> GtkCellRendererPixbuf aren't GtkWidgets so I can't call the method
> "gtk_widget_queue_draw()" to make their draw func called.

Just put the pixbuf into your treestore and setup a treeview with a
pixbuf renderer. It will take care of drawing your pixbuf. There's
plenty of example code for this. Have a look at the demo directory in
the GTK+ source tree.


Sven



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]