Re: on_style_changed signal



>When exactly does this signal get emitted?  I'm trying to repaint my 
>Gtk::DrawingArea when this happens but it looks like this signal gets 
>emitted before the Gtk::DrawingArea is realized.

Repeat the Golden Mantra of all X Window toolkits:

       ONLY DRAW IN SOMETHING THAT HANDLES A (real or synthetic)
       EXPOSE EVENT.

If you want to draw because of something detected elsewhere in the
program, cause a synthetic expose event to be sent. In gtkmm, its done
like this:

     widget.queue_draw ()

--p

       



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