Also base the icon height on the font size
This commit is contained in:
parent
0e837b6fe4
commit
756576f0aa
|
@ -719,10 +719,19 @@ GdkPixbuf * desktop_get_folder(Desktop * desktop)
|
||||||
void desktop_get_icon_size(Desktop * desktop, unsigned int * width,
|
void desktop_get_icon_size(Desktop * desktop, unsigned int * width,
|
||||||
unsigned int * height, unsigned int * size)
|
unsigned int * height, unsigned int * size)
|
||||||
{
|
{
|
||||||
|
unsigned int h;
|
||||||
|
|
||||||
if(width != NULL)
|
if(width != NULL)
|
||||||
*width = desktop->icons_size * 2;
|
*width = desktop->icons_size * 2;
|
||||||
if(height != NULL)
|
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)
|
if(size != NULL)
|
||||||
*size = desktop->icons_size;
|
*size = desktop->icons_size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user