Package: libgtkhtml3.14-19 Version: 3.28.2-1 Severity: normal Tags: patch -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
The function draw_spell_error() calls gdk_gc_set_fill (gdk_painter->gc, GDK_OPAQUE_STIPPLED); presumably for underlining misspelled words. However, it doesn't reset the GC fill style after doing its drawing operations, so the opaque stippled style remains effective for unrelated drawing operations, potentially slowing them down unnecessarily. The attached patch fixes this. - -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (102, 'experimental') Architecture: powerpc (ppc) Kernel: Linux 2.6.32.2 Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages libgtkhtml3.14-19 depends on: ii libatk1.0-0 1.28.0-1 The ATK accessibility toolkit ii libc6 2.10.2-2 GNU C Library: Shared libraries ii libcairo2 1.8.8-2 The Cairo 2D vector graphics libra ii libenchant1c2a 1.4.2-3.4 a wrapper library for various spel ii libfontconfig1 2.6.0-4.2 generic font configuration library ii libfreetype6 2.3.11-1 FreeType 2 font engine, shared lib ii libgail18 2.18.5-1 GNOME Accessibility Implementation ii libgconf2-4 2.28.0-1 GNOME configuration database syste ii libglib2.0-0 2.22.3-1 The GLib library of C routines ii libgtk2.0-0 2.18.5-1 The GTK+ graphical user interface ii libpango1.0-0 1.26.2-1 Layout and rendering of internatio ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime libgtkhtml3.14-19 recommends no packages. Versions of packages libgtkhtml3.14-19 suggests: pn libgtkhtml3.14-dbg <none> (no description available) - -- no debconf information -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLM6NtWoGvjmrbsgARAjY+AKCEfzxDUxNuZxNLHpIZSc3RjF/cEACffrLa YnSXjhYnmzf2Rm0tun/t6s8= =23QR -----END PGP SIGNATURE-----
diff -up -ru gtkhtml3.14-3.28.2.orig/gtkhtml/htmlgdkpainter.c gtkhtml3.14-3.28.2/gtkhtml/htmlgdkpainter.c --- gtkhtml3.14-3.28.2.orig/gtkhtml/htmlgdkpainter.c 2009-11-28 21:26:13.000000000 +0100 +++ gtkhtml3.14-3.28.2/gtkhtml/htmlgdkpainter.c 2009-12-24 17:09:59.000000000 +0100 @@ -682,6 +682,7 @@ draw_spell_error (HTMLPainter *painter, gdk_draw_line (gdk_painter->pixmap, gdk_painter->gc, x, y, x + width, y); gdk_gc_set_dashes (gdk_painter->gc, 0, dash_list, 2); gdk_draw_line (gdk_painter->pixmap, gdk_painter->gc, x, y + 1, x + width, y + 1); + gdk_gc_set_fill (gdk_painter->gc, values.fill); gdk_gc_set_line_attributes (gdk_painter->gc, values.line_width, values.line_style, values.cap_style, values.join_style);