src/Builder4/PopoverFiles.bjs
authorAlan <alan@roojs.com>
Fri, 20 May 2022 06:11:13 +0000 (14:11 +0800)
committerAlan <alan@roojs.com>
Fri, 20 May 2022 06:11:13 +0000 (14:11 +0800)
src/Builder4/PopoverFiles.vala

src/Builder4/PopoverFiles.bjs
src/Builder4/PopoverFiles.vala

index f3d450e..68289ca 100644 (file)
     "        var fname = file.getIconFileName(false);",
     "        try {",
     "\t\t    if (FileUtils.test(fname, FileTest.EXISTS)) {",
-    "\t\t        pixbuf = new Gdk.Pixbuf.from_file(fname);",
+    "\t\t        pixbuf = new Gdk.Pixbuf.from_file(fname).scale_simple(92,92,GDK_INTERP_NEAREST) ;",
     "\t\t    } ",
     "\t\t} catch (Error e) {",
     "\t\t    // noop",
index f6c799d..186576d 100644 (file)
@@ -165,7 +165,7 @@ public class Xcls_PopoverFiles : Object
             var fname = file.getIconFileName(false);
             try {
                    if (FileUtils.test(fname, FileTest.EXISTS)) {
-                       pixbuf = new Gdk.Pixbuf.from_file(fname);
+                       pixbuf = new Gdk.Pixbuf.from_file(fname).scale_simple(92,92,GDK_INTERP_NEAREST) ;
                    } 
                } catch (Error e) {
                    // noop