Il 04/11/2013 15:06, Jasper St. Pierre ha scritto:
> Connect to the "draw" signal on the widget to do your drawing, and callThis is what I'm currently doing (I've connected to "draw" signal of a
> gtk_widget_queue_redraw(); on the widget if you want to request a redraw.
>
GtkDrawingArea), but the problem is that I have the "draw" event fired
continuosly.
> <mailto:onetmt gmail com>> wrote:> gtk-list gnome org <mailto:gtk-list gnome org>
>
> I'm currently in the process of porting to gtk+-3 an old finite
> difference calculation application; this application had a custom graph
> drawing routine based on gdk_ subsystem that cannot be compiled anymore
> against new gtk3 api :( . I succesfully converted every gdk_ invocation
> in their cairo_ counterparts, but now I have to substitute the no longer
> available "expose-event" with the new "draw" event. The problem is that
> it runs continuosly in an infinite loop.
>
> What is the expected mechanism of this new event? How can I refresh the
> graph in a clean way as in old expose-event?
>
> TIA
>
> --
> Hofstadter's Law:
> "It always takes longer than you expect, even when you take into account
> Hofstadter's Law."
> _______________________________________________
> gtk-list mailing list
> https://mail.gnome.org/mailman/listinfo/gtk-list
>
>
>
>
> --
> Jasper
--
Hofstadter's Law:
"It always takes longer than you expect, even when you take into account
Hofstadter's Law."
_______________________________________________
gtk-list mailing list
gtk-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-list