mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Make it a 1pt reduction, and make the variable just a bit clearer.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15485 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
c71c7ecd24
commit
594a1f343f
@ -294,7 +294,7 @@ gnc_dense_cal_init(GncDenseCal *dcal)
|
||||
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 @@ gnc_dense_cal_init(GncDenseCal *dcal)
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user