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



I understand that. The problem now is that the widget doesn't activate "expose" signals at all. The widget is a Socket plugged with MPlayer to display a video.

On 1/12/07, Paul Davis <paul linuxaudiosystems com> wrote:
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





--
Pedro Castro
http://www.pedrocastro.org

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