GNOME Bugzilla – Bug 322385
Redraw problem when GtkScrolledWindow is inside a GtkPaned
Last modified: 2007-07-08 22:21:23 UTC
Version details: gtk2-2.4.14-4.fc3.3 Distribution/Version: Linux FC3 and Windows 2000/XP I have 3 redraw problems when placing a GtkScrolledWindow into a GtkHPaned. Please run the attached example program for verification. 1. The first problem concerns GtkScrolledWindow itself when setting the hscrollbar policy to something else than GTK_POLICY_ALWAYS and setting a shadow type. It seems that GtkScrolledWindow draws the bottom line of the shadow one pixel below the height of its allocation. If you look carefully you can see it. Or, use the gutter to change the allocation and you notice that there is a break in the shadow as in the attached screen shot 1. When setting the border of the window to 0 (comment out the line gtk_container_set_border_width(GTK_CONTAINER(window), 5);) then the bottom line is missing; GtkScrolledWindow seems to draw outside its allocation. For me this happens only on Linux and it might be a theme bug. 2. When moving the gutter around the widget on the right flickers (the text inside the TextView shifts a few pixels left and right). This is a minor graphical issue but just looks bad. Note that the vertical scrollbar does not flicker. On Windows the flickering is more severe than on Linux (but this might be because of Windows does not refresh as quickly as Linux does on my computers). 3. On Windows the right widget does not redraw correctly leaving garbage (parts of the gutter) around. See screen shot 2. Does not happen on Linux.
Created attachment 55207 [details] Test case for all 3 problems.
Created attachment 55209 [details] Screen shot 1 showing a break in the bottom line of the shadow
Created attachment 55210 [details] Screen shot 2 showing garbage in the right widget (Windows only)
Please check if the problem persists in GTK+ 2.8. Or at least 2.6. Bugs are fixed in 2.8 (and HEAD) only. Anyway, I can't reproduce the problem with either GTK+ 2.4.14 or 2.8.6 on Windows.
I just checked with gtk+-2.6.9 from your page http://www.gimp.org/~tml/gimp/win32/ and problems 2 and 3 persist on my Windows version. I haven't found the time yet to compile gtk+-2.8 for Windows. Do you have any plans for updating your web site with the latest version?
GTK+ 2.8.* for Windows is available from ftp.gtk.org. Could you give more precise instructions how to reproduce the problem, and where to look?
Oh, didn't know that binaries are available on the ftp site. Thanks for the info. Anyway, I installed 2.8.7 on Windows and the problem persists: click on the gutter and drag it around left and right for changing the size of the left and right widget. Even when dragging slowly I can observe two redrawing problems in the right widget: (a) the text in the GtkTextView flickers by bouncing left and right a few pixels (but the scrollbar stays solid!) (described in the initial report as problem 2.), and (b) the right widget does not redraw correctly and leaves garbage around (as in screen shot 2) even after releasing the gutter. The faster you drag the gutter the more garbage you get (problem 3 in above report).
*** This bug has been marked as a duplicate of 144269 ***