Bugs in refresh code ?



Hi all,

I think I found two bugs in the refresh code
of the GTK. When I want to redraw only a part
of a window (in my case a GtkScrolledWindow)
I use the gtk_widget_draw() function, which
takes a rectangle as its second parameter.
The rectangle is supposed to indicate the
area which has to be redrawn.

1) The rectangle I wanted to redraw streched from
0,0 to 100,19 and nothing was redrawn. So I
intercepted all expose and all draw events and
no such events were generated. After some trying,
I found out that the rectangle height has to be
above 29 (sic!) to generate a redraw. There is
no such limitation for the width. That means
that my prgrams works as desired with a height
of 30 or bigger.

2) It does not seem to be possible to refresh the
first line using the above method. It is not redrawn
even if I set the rectangle indicating the exposed
area to (0,-10) (some_width,some_height).
I honestly did not check this bug very carefully.

I use GTK 0.99.0 on an unchanged Debian 1.3.1 with
a S3 card.

  Regards,

       Robert Roebling



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