Re: [gtk-list] Force refresh/exposure




On Tue, 20 Jul 1999, Emmanuel Varagnat wrote:
> 
> I've got a dialog box which just contain a label.
> After showing the dialog box I'm calling 'waitpid', so the contents of
> the label isn't shown.
> 

You have a larger problem; even if you force the exposure, you're blocking
in waitpid() so if you get subsequent exposures you won't redraw (for
example if the user move another window over your window).

So, the real thing you need to do is not block in waitpid() - maybe use
threads, maybe just fork() before you exec the child.

Anyway, to redraw the label try calling gtk_widget_draw() on its parent
container.

Havoc




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