Bug#279937: gtk2-engines-lighthouseblue: [PATCH] Radio buttons in
GTKTreeView look the same whether checked or unchecked
Dave Ahlswede
Dave Ahlswede <mightyquinn@letterboxes.org>, 279937@bugs.debian.org
Sat, 06 Nov 2004 01:29:38 -0500
This is a multi-part MIME message sent by reportbug.
--===============0506652961==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: gtk2-engines-lighthouseblue
Version: 2.8.1-1
Severity: normal
Tags: patch
Radio/Option button widgets embedded in a TreeView don't render properly in the Lighthouse blue engine--
They always appear checked. The Engine seems to be unmaintained upstream, so I'd like to submit
my one-line fix here.
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.9-ck2
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Versions of packages gtk2-engines-lighthouseblue depends on:
ii libatk1.0-0 1.8.0-2 The ATK accessibility toolkit
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an
ii libglib2.0-0 2.4.7-1 The GLib library of C routines
ii libgtk2.0-0 2.4.13-1da2 The GTK+ graphical user interface
ii libpango1.0-0 1.6.0-1 Layout and rendering of internatio
-- no debconf information
--===============0506652961==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="lighthouseblue_tree_radio_fix"
diff -ur gnome-themes-2.8.1/gtk-themes/LightHouseBlue/src/lighthouseblue_style.c ../gnome-themes-2.8.1/gtk-themes/LightHouseBlue/src/lighthouseblue_style.c
--- gnome-themes-2.8.1/gtk-themes/LightHouseBlue/src/lighthouseblue_style.c 2004-08-18 11:15:04 -0400
+++ ../gnome-themes-2.8.1/gtk-themes/LightHouseBlue/src/lighthouseblue_style.c 2004-11-06 01:05:19 -0500
@@ -810,7 +810,8 @@
{
gdk_draw_arc(window, style->text_gc[state_type], FALSE, x, y, width, height, 0, 360 * 64);
- gdk_draw_arc(window, style->text_gc[state_type], TRUE, x + 2, y + 2, width - 4, height - 4, 0, 360 * 64);
+ if (shadow_type == GTK_SHADOW_IN)
+ gdk_draw_arc(window, style->text_gc[state_type], TRUE, x + 2, y + 2, width - 4, height - 4, 0, 360 * 64);
return;
}
--===============0506652961==--