Re: on_style_changed signal
- From: Rob Benton <rob benton conwaycorp net>
- To: Paul Davis <paul linuxaudiosystems com>
- Cc: gtkmm-list gnome org
- Subject: Re: on_style_changed signal
- Date: Sun, 12 Dec 2004 21:39:24 -0600
Paul Davis wrote:
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
I have a Gtk::DrawingArea and a Gdk::Pixmap that share a Gdk::GC. I
want to draw the new style bg color to the pixmap , then draw the pixmap
to the drawingarea. But how can I make these changes before I call
queue_draw() ?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]