2012-02-29 [colin] 3.8.0cvs30
authorColin Leroy <colin@colino.net>
Wed, 29 Feb 2012 16:48:40 +0000 (16:48 +0000)
committerColin Leroy <colin@colino.net>
Wed, 29 Feb 2012 16:48:40 +0000 (16:48 +0000)
* src/gtk/gtkcmctree.c
Fix bug #2577, "Focus rectangle on folder list and message
list headings doesn't get properly cleared when switching
heading and horizontally scrolling list (underlines and
vertical lines remain on screen)". Patch by Michael Shell

ChangeLog
PATCHSETS
configure.ac
src/gtk/gtkcmctree.c

index 5b0fd10..8c6b4a6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-02-29 [colin]     3.8.0cvs30
+
+       * src/gtk/gtkcmctree.c
+               Fix bug #2577, "Focus rectangle on folder list and message 
+               list headings doesn't get properly cleared when switching 
+               heading and horizontally scrolling list (underlines and 
+               vertical lines remain on screen)". Patch by Michael Shell
+
 2012-02-13 [pawel]     3.8.0cvs29
 
        * src/messageview.c
index 3918ae6..4ba2fc7 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.60.2.78 -r 1.60.2.79 src/prefs_actions.c;  cvs diff -u -r 1.5.2.8 -r 1.5.2.9 src/prefs_actions.h;  cvs diff -u -r 1.30.2.69 -r 1.30.2.70 src/prefs_toolbar.c;  cvs diff -u -r 1.5.2.12 -r 1.5.2.13 src/prefs_toolbar.h;  cvs diff -u -r 1.43.2.125 -r 1.43.2.126 src/toolbar.c;  cvs diff -u -r 1.19.2.33 -r 1.19.2.34 src/toolbar.h;  ) > 3.8.0cvs27.patchset
 ( cvs diff -u -r 1.60.2.60 -r 1.60.2.61 src/filtering.c;  ) > 3.8.0cvs28.patchset
 ( cvs diff -u -r 1.94.2.227 -r 1.94.2.228 src/messageview.c;  ) > 3.8.0cvs29.patchset
+( cvs diff -u -r 1.1.2.28 -r 1.1.2.29 src/gtk/gtkcmctree.c;  ) > 3.8.0cvs30.patchset
index 85e000d..19b247c 100644 (file)
@@ -12,7 +12,7 @@ MINOR_VERSION=8
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=29
+EXTRA_VERSION=30
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 4d0cbe1..276a810 100644 (file)
@@ -695,6 +695,8 @@ draw_row (GtkCMCList     *clist,
         gdk_cairo_rectangle(cr, &cell_rectangle);
        gdk_cairo_set_source_color(cr, &style->base[GTK_STATE_NORMAL]);
        cairo_fill(cr);
+       cairo_rectangle(cr, cell_rectangle.x, cell_rectangle.y + row_rectangle.height + 1,cell_rectangle.width,cell_rectangle.height);
+       cairo_fill(cr);
       }
     }
   else
@@ -704,6 +706,8 @@ draw_row (GtkCMCList     *clist,
       gdk_cairo_rectangle(cr, &cell_rectangle);
       gdk_cairo_set_source_color(cr, &style->base[GTK_STATE_NORMAL]);
       cairo_fill(cr);
+      cairo_rectangle(cr, cell_rectangle.x, cell_rectangle.y + row_rectangle.height + 1,cell_rectangle.width,cell_rectangle.height);
+      cairo_fill(cr);
     }
 
   /* the last row has to clear its bottom cell spacing too */
@@ -938,9 +942,10 @@ draw_row (GtkCMCList     *clist,
            cairo_set_line_width(cr, 1.0);
            cairo_set_antialias(cr, CAIRO_ANTIALIAS_NONE);
            gdk_cairo_set_source_color(cr, &style->fg[GTK_STATE_NORMAL]);
-           cairo_rectangle(cr, row_rectangle.x, row_rectangle.y,
-                             row_rectangle.width + 1,
-                             row_rectangle.height);
+           cairo_move_to (cr, row_rectangle.x, row_rectangle.y + 0.5);
+           cairo_line_to (cr, row_rectangle.x + row_rectangle.width, row_rectangle.y + 0.5);
+           cairo_move_to (cr, row_rectangle.x, row_rectangle.y + row_rectangle.height - 0.5);
+           cairo_line_to (cr, row_rectangle.x + row_rectangle.width, row_rectangle.y + row_rectangle.height - 0.5);
            cairo_stroke(cr);
        }
      }