Also base the icon height on the font size

This commit is contained in:
Pierre Pronchery 2018-10-26 15:56:04 -03:00
parent 0e837b6fe4
commit 756576f0aa

View File

@ -719,10 +719,19 @@ GdkPixbuf * desktop_get_folder(Desktop * desktop)
void desktop_get_icon_size(Desktop * desktop, unsigned int * width,
unsigned int * height, unsigned int * size)
{
unsigned int h;
if(width != NULL)
*width = desktop->icons_size * 2;
if(height != NULL)
*height = desktop->icons_size * 2;
{
h = pango_font_description_get_size(desktop->font);
if(h > 0 && pango_font_description_get_size_is_absolute(
desktop->font))
*height = desktop->icons_size + (h * 3);
else
*height = desktop->icons_size * 2;
}
if(size != NULL)
*size = desktop->icons_size;
}