Re: How can I solve this problem of Gdk



>you can not access a widget's window before it is realized (because
>there is none). You should either connect_after realize and create
>your GC there or simply do it in the expose_event handler where you
>do your drawing.

you can also connect to the map event which is useful for some things.
i often use the map/unmap events of combo popwin's to be able to reset
the contents and/or retrieve whatever choice was made (the combo has
such a terrible API that this was the best i could do). ditto for
menus that need to be completely dynamic.

--p



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