After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 322385 - Redraw problem when GtkScrolledWindow is inside a GtkPaned
Redraw problem when GtkScrolledWindow is inside a GtkPaned
Status: RESOLVED DUPLICATE of bug 144269
Product: gtk+
Classification: Platform
Component: Widget: Other
2.4.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-11-25 02:17 UTC by Steffen Gutmann
Modified: 2007-07-08 22:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case for all 3 problems. (1.80 KB, text/plain)
2005-11-25 02:20 UTC, Steffen Gutmann
Details
Screen shot 1 showing a break in the bottom line of the shadow (15.20 KB, image/png)
2005-11-25 02:26 UTC, Steffen Gutmann
Details
Screen shot 2 showing garbage in the right widget (Windows only) (13.50 KB, image/png)
2005-11-25 02:32 UTC, Steffen Gutmann
Details

Description Steffen Gutmann 2005-11-25 02:17:59 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.
Comment 1 Steffen Gutmann 2005-11-25 02:20:42 UTC
Created attachment 55207 [details]
Test case for all 3 problems.
Comment 2 Steffen Gutmann 2005-11-25 02:26:28 UTC
Created attachment 55209 [details]
Screen shot 1 showing a break in the bottom line of the shadow
Comment 3 Steffen Gutmann 2005-11-25 02:32:37 UTC
Created attachment 55210 [details]
Screen shot 2 showing garbage in the right widget (Windows only)
Comment 4 Tor Lillqvist 2005-11-25 02:46:03 UTC
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.
Comment 5 Steffen Gutmann 2005-11-25 04:42:25 UTC
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?
Comment 6 Tor Lillqvist 2005-11-25 04:52:32 UTC
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?
Comment 7 Steffen Gutmann 2005-11-25 06:04:47 UTC
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).
Comment 8 Cody Russell 2007-07-08 22:21:23 UTC

*** This bug has been marked as a duplicate of 144269 ***