Re: newbie question concerning drawing/signals



On Thu, Dec 19, 2002 at 02:21:52AM +0100, zebster wrote:  
> my question is - am i stoopid coding this way? using
> configure_event to call the appropriate (re)drawing
> routine saves a seperate redraw() routine.
> 

The best way to do your redraw is to use gtk_widget_queue_draw() or
gtk_widget_queue_draw_area() instead of sending the configure event
directly.
 
> any suggestions? i'd be really grateful!

It's probably just a bug in one of the type-unsafe areas of GTK
programming, like emitting or connecting to GTK signals. Be sure your
signal handlers have the right prototypes and your signal emissions
have the right arguments.

google for "valgrind" and try using it whenever you have a memory
corruption type of problem - often it'll discover the issue in a
hurry, though it won't find all problems.

Havoc



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