Bug#556031: libgtk2.0-0: treeview+scrolledwindow redraw issues when inserting and removing rows
mikel garai
mikel+debian at garai.eu
Fri Nov 13 10:09:05 UTC 2009
Package: libgtk2.0-0
Version: 2.18.3-1
Severity: normal
Ok, I know this will sound a little confusing because it happens in very specific situation, but I will try to make it clear. And sorry in advance for my English
The situation is the following:
I have a treeview inside a scrolledwindow.
The treeview have a lot of rows so the vertical scrollbar is shown and enabled.
I scroll down to any point, making sure that there are rows that are not shown in the beginning.
If a row is removed and then another row is added before repainting on the area of the treeview that is not visible over the visible area, the treeview is not repainted properly. The artifact is that the last column is correctly repainted and the rest of the columns are not, they appear one row displaced up until another repaint is triggered (for example by the mouse moving over them).
I add a simple python script with a basic example of this behaviour (extracted from the pygtk tutorial), it just have a timeout of 2seconds that removes the 3rd line of the treeview and add just there a line, to see the artifact just scroll down so the 3rd line is totally out of the visible area and select any line, you'll see that even the cursor and selection are not properly redrawn.
I add this script for simplicity, but I am reporting this to general gtk2 because it happened to me in gtkmm too, so I'm guessing that is a gtk issue.
Thank you,
Mikel
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.30-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libgtk2.0-0 depends on:
ii libatk1.0-0 1.28.0-1 The ATK accessibility toolkit
ii libc6 2.10.1-5 GNU C Library: Shared libraries
ii libcairo2 1.8.8-2 The Cairo 2D vector graphics libra
ii libcups2 1.4.1-4 Common UNIX Printing System(tm) -
ii libfontconfig1 2.6.0-4 generic font configuration library
ii libfreetype6 2.3.11-1 FreeType 2 font engine, shared lib
ii libglib2.0-0 2.22.2-2 The GLib library of C routines
ii libgnutls26 2.8.4-2 the GNU TLS library - runtime libr
ii libgssapi-krb5-2 1.7dfsg~beta3-1 MIT Kerberos runtime libraries - k
ii libgtk2.0-common 2.18.3-1 Common files for the GTK+ graphica
ii libjasper1 1.900.1-6 The JasPer JPEG-2000 runtime libra
ii libjpeg62 6b-15 The Independent JPEG Group's JPEG
ii libpango1.0-0 1.26.0-1 Layout and rendering of internatio
ii libpng12-0 1.2.40-1 PNG library - runtime
ii libtiff4 3.9.1-1 Tag Image File Format (TIFF) libra
ii libx11-6 2:1.2.2-1 X11 client-side library
ii libxcomposite1 1:0.4.0-4 X11 Composite extension library
ii libxcursor1 1:1.1.9-1 X cursor management library
ii libxdamage1 1:1.1.1-4 X11 damaged region extension libra
ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar
ii libxfixes3 1:4.0.3-2 X11 miscellaneous 'fixes' extensio
ii libxi6 2:1.2.1-2 X11 Input extension library
ii libxinerama1 2:1.0.3-2 X11 Xinerama extension library
ii libxrandr2 2:1.3.0-2 X11 RandR extension library
ii libxrender1 1:0.9.4-2 X Rendering Extension client libra
ii shared-mime-info 0.60-2 FreeDesktop.org shared MIME databa
ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime
Versions of packages libgtk2.0-0 recommends:
ii hicolor-icon-theme 0.10-2 default fallback theme for FreeDes
ii libgtk2.0-bin 2.18.3-1 The programs for the GTK+ graphica
Versions of packages libgtk2.0-0 suggests:
ii gvfs 1.4.1-2 userspace virtual filesystem - ser
ii librsvg2-common 2.26.0-1 SAX-based renderer library for SVG
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: basictreeview.py
Type: text/x-java
Size: 2020 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20091113/2f061d62/attachment.java>
More information about the pkg-gnome-maintainers
mailing list