" var fname = file.getIconFileName(false);",
" try {",
"\t\t if (FileUtils.test(fname, FileTest.EXISTS)) {",
- "\t\t pixbuf = new Gdk.Pixbuf.from_file(fname).scale_simple(92,92, Gdk.InterpType.NEAREST) ;",
+ "\t\t var pixbuf = new Gdk.Pixbuf.from_file(fname)",
+ "\t\t pixbuf = pixbuf.scale_simple(92, 92 * (pixbuf.height / pixbuf.width), Gdk.InterpType.NEAREST) ;",
"\t\t } ",
"\t\t} catch (Error e) {",
"\t\t // noop",
var fname = file.getIconFileName(false);
try {
if (FileUtils.test(fname, FileTest.EXISTS)) {
- pixbuf = new Gdk.Pixbuf.from_file(fname).scale_simple(92,92, Gdk.InterpType.NEAREST) ;
+ var pixbuf = new Gdk.Pixbuf.from_file(fname)
+ pixbuf = pixbuf.scale_simple(92, 92 * (pixbuf.height / pixbuf.width), Gdk.InterpType.NEAREST) ;
}
} catch (Error e) {
// noop