gtk+ r22127 - in branches/gtk-2-14: . modules/engines/ms-windows



Author: bratsche
Date: Fri Jan 16 16:35:30 2009
New Revision: 22127
URL: http://svn.gnome.org/viewvc/gtk+?rev=22127&view=rev

Log:
2009-01-16  Cody Russell  <bratsche gnome org>

        Bug 567944 â [Win32] Sorted treeview columns can be unreadable

        * modules/engines/ms-windows/msw_style.c: Draw selected treeview
        cells according to treeview focus, but ignore whether it is in
        a sorted column or not.  Otherwise the intersection of a selected
        row and a sorted column looks very strange if the treeview does
        not have focus.	 



Modified:
   branches/gtk-2-14/ChangeLog
   branches/gtk-2-14/modules/engines/ms-windows/msw_style.c

Modified: branches/gtk-2-14/modules/engines/ms-windows/msw_style.c
==============================================================================
--- branches/gtk-2-14/modules/engines/ms-windows/msw_style.c	(original)
+++ branches/gtk-2-14/modules/engines/ms-windows/msw_style.c	Fri Jan 16 16:35:30 2009
@@ -2897,7 +2897,16 @@
 {
   if (detail)
     {
-      if (!strcmp (detail, "checkbutton"))
+      if (state_type == GTK_STATE_SELECTED &&
+	  (!strncmp ("cell_even", detail, 9) || !strncmp ("cell_odd", detail, 8)))
+	{
+	  GdkGC *gc = GTK_WIDGET_HAS_FOCUS (widget) ? style->base_gc[state_type] : style->base_gc[GTK_STATE_ACTIVE];
+
+	  gdk_draw_rectangle (window, gc, TRUE, x, y, width, height);
+
+	  return;
+	}
+      else if (!strcmp (detail, "checkbutton"))
 	{
 	  if (state_type == GTK_STATE_PRELIGHT)
 	    {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]