Re: forcing immediate redraw on widget



Marc Santhoff wrote:

I wrote a little testing program in C to narrow the error area. It
shows the following behaviour:

- If the bg color in the GtkRcStyle is only changed and assigned,
nothing happens
- if a resizing of the window is involved, the color is shown
immediately
- minimizing and restoring shows color change immediately, too

What about the method all my previous writings were about? What about
gtk_widget_queue_draw () (with a different target than your GtkHScale)?

Summarizing I have to do a resize request on the window to get the
desired effect. In my opinion this is at least a design flaw.

It would be, if there were really no other way to invalidate a widget in
GTK+ 1.2. But I doubt that.

My next goal is to do a request with no size change and, if it does
not do anything, do to request with a minimal change and hope i get no
flickering. The window must stay in it's original size filling up the
complete 640x480  screen.

You should keep your focus on trying to invalidate the particular widget
which it is all about. As I mentioned earlier, you will not want to
invalidate the entire window. Especially not by resize requests.



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