Re: on_style_changed signal



>The way I have approached this is to let all the drawing on the pixmap 
>be done in a separate function which then calls queue_draw() on the 
>drawingarea whose handler executes drawingarea->draw_drawable(pixmap). 
>Should all the drawing logic be inside the expose_event handler instead?

it might be easier for you. it varies a bit application by application.

>The problem I have is that if on_style_changed is called before the 
>drawingarea is realized I can't create a Gdk::GC.

you can call object->realize() yourself, but you need a pretty good
reason.

--p




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