r15485 - gnucash/trunk/src/gnome-utils - Make it a 1pt reduction, and make the variable just a bit clearer.

Josh Sled jsled at cvs.gnucash.org
Wed Jan 31 21:25:53 EST 2007


Author: jsled
Date: 2007-01-31 21:25:52 -0500 (Wed, 31 Jan 2007)
New Revision: 15485
Trac: http://svn.gnucash.org/trac/changeset/15485

Modified:
   gnucash/trunk/src/gnome-utils/gnc-dense-cal.c
Log:
Make it a 1pt reduction, and make the variable just a bit clearer.

Modified: gnucash/trunk/src/gnome-utils/gnc-dense-cal.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-dense-cal.c	2007-02-01 01:08:05 UTC (rev 15484)
+++ gnucash/trunk/src/gnome-utils/gnc-dense-cal.c	2007-02-01 02:25:52 UTC (rev 15485)
@@ -294,7 +294,7 @@
           const PangoFontDescription *existing_font_desc;
           PangoFontDescription *font_desc;
           gint font_size;
-          gint font_size_reduction = 2; // pts
+          gint font_size_reduction_pts = 1;
 
           layout = gtk_widget_create_pango_layout(GTK_WIDGET(dcal), NULL);
 
@@ -302,7 +302,7 @@
 
           font_desc = pango_font_description_copy(style->font_desc);
           font_size = pango_font_description_get_size(font_desc);
-          font_size -= font_size_reduction * PANGO_SCALE;
+          font_size -= font_size_reduction_pts * PANGO_SCALE;
           pango_font_description_set_size(font_desc, font_size);
           gtk_widget_modify_font(GTK_WIDGET(dcal), font_desc);
           pango_font_description_free(font_desc);



More information about the gnucash-changes mailing list