Re: GtkCellRenderer

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

 



Hi,

sinsedrix@xxxxxxxx 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
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux