Re: delays in event dispatching ???



Owen Taylor wrote:
> The problem is you are using gtk_widget_show() to show the dialog -
> this asks the window manager to show the dialog but doesn't
> wait for it to do so, so when you process the event queue, the
> window may not yet be there to draw on.
> 
> Instead you should call gtk_widget_show_now() which asks the
> window manager to show the dialog and waits for it to become
> visible.
Tks. Actually, this solved the problem.
Is there any side effect when using gtk_widget_show_now() instead of
gtk_widget_show() ?

> So, to be absolutely safe, you probably should call
> gtk_widget_draw(dialog) after processing the event queue the first
> time.
Ok.

BYtE,
 Diego.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





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