Re: How to draw persistent text (with Pango)?

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

 



On Fri, 2007-01-12 at 02:21 +0000, Pedro Castro wrote:
> I'm using Drawable.DrawLayout to draw some text over a widget. The
> problem is, the text is removed when the widget is updated. How to
> make the text persist?

you can't. every time a widget gets an expose event from the underlying
window system, some or all of it is redrawn. this is a basic element of
GTK's design.

you will need to hook into the "expose" signal for the widget in
question, and redraw your text from the signal handler.

--p


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux