notebook and configure event ...



Hello, ...

i have a notebook widget with two pages, one containing a text widget, the
other containing a drawingarea widget.

when i launch the application with the drawingarea page as top page, the
drawingarea widget receive a configure event that i use to initialize a backing
pixmap that i draw during the expose event, as it is done in the scribble
example of the gtk+ source. When i go to the second page the first time, the
drawingarea widget receive another configure event, that erases everything i
did in the backing pixmap. Subsequent page change don't generate any configure
event.

When i launch the application with the text widget at the top, The drawingarea
receive 2 configure events when i click on the page tab to bring it to front,
and no more after that.

Is this correct behavior ?

Where does this second configure event comes from, and how do i detect it ?

Friendly,

Sven LUTHER



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