r16139 - gnucash/trunk/src/gnome-utils - Readd two pixels to the widths of colored backgrounds in the dense calendar.

Andreas Köhler andi5 at cvs.gnucash.org
Wed May 30 13:44:09 EDT 2007


Author: andi5
Date: 2007-05-30 13:44:08 -0400 (Wed, 30 May 2007)
New Revision: 16139
Trac: http://svn.gnucash.org/trac/changeset/16139

Modified:
   gnucash/trunk/src/gnome-utils/gnc-dense-cal.c
Log:
Readd two pixels to the widths of colored backgrounds in the dense calendar.

When drawing week backgrounds and the outer month borders, two
mysterious pixels were subtracted from the widths.  This led to two
white pixels at the end of incomplete weeks that contained the last day
of the month and belonged to the last month of a calendar column.


Modified: gnucash/trunk/src/gnome-utils/gnc-dense-cal.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-dense-cal.c	2007-05-30 16:16:41 UTC (rev 16138)
+++ gnucash/trunk/src/gnome-utils/gnc-dense-cal.c	2007-05-30 17:44:08 UTC (rev 16139)
@@ -887,7 +887,7 @@
                 rect = (GdkRectangle*)mcListIter->data;
                 gdk_draw_rectangle(dcal->drawbuf, gc,
                                    TRUE, rect->x, rect->y,
-                                   rect->width - 2, rect->height);
+                                   rect->width, rect->height);
             }
             g_list_foreach(mcList, free_rect, NULL);
             g_list_free(mcList);
@@ -957,7 +957,7 @@
             + (i * (col_width(dcal)+COL_BORDER_SIZE))
             + dcal->label_width;
         y = dcal->topPadding + dcal->dayLabelHeight;
-        w = col_width(dcal) - COL_BORDER_SIZE - dcal->label_width - 2;
+        w = col_width(dcal) - COL_BORDER_SIZE - dcal->label_width;
         h = col_height(dcal);
 
         /* draw the outside border [inside the month labels] */



More information about the gnucash-changes mailing list