Re: Signal when window is shown



>>realize
>
>i tried it but it never happens!
>
>>show
>
>i tried it but nothing happened again...
>
>>map
>
>i tried the map_event and it worked, but not on the first time..
>
>i have a drawing area and i want to draw somethings on it when the window appe
>ars, but nothing is working! the only one that entered the signal handler was 
>the map_event, but the first time it entered the signal handler it didn't pain
>t, only on the second time.

you must be making a mistake at a different level. realize is always
emitted for every widget with a GdkWindow (e.g. a GtkWindow) - nothing
can be drawn unless the widget is realized, and being realized emits
that signal.

are you sure you connected to the correct signals at the correct time?

--p




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