Re: how to use get_geometry correctlly





On Tue, Mar 25, 2008 at 7:32 PM, Paul Davis <paul linuxaudiosystems com> wrote:

no, it means that the widget has been realized .... that is, a low level
window owned by the windowing system in use (X Window, GDI on windows,
Quartz on OS X) has been created and the widget has been "attached" to
it so that it will draw into that window.

So, be drawed  is the "been realized", right?


you cannot predict or even directly control when this happens, so i
wouldn't bother to try. if you want the geometry, the best thing to do
is to catch configure-events on the parent top level window
(configure-event is only sent to top level windows), and then query the
widget. you can be certain that (a) it will have a window at that time
and (b) the window manager (or its equivalent on different platforms)
has finished (for now) with controlling the top level window dimensions.
 
So far, the segmentation fault problem was solved.
And I found a method, is_realized(), and I will do more test.
Thanks Paul!

Regards,
Zoro


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