src/Builder4/PopoverFiles.bjs
authorAlan <alan@roojs.com>
Fri, 29 Jul 2022 07:05:43 +0000 (15:05 +0800)
committerAlan <alan@roojs.com>
Fri, 29 Jul 2022 07:05:43 +0000 (15:05 +0800)
src/Builder4/PopoverFiles.vala

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

index 3a16aa4..af19afa 100644 (file)
     "\t\t        var npixbuf = new Gdk.Pixbuf.from_file(fname);",
     "\t\t        pixbuf = npixbuf.scale_simple(92, (int) (npixbuf.height * 92.0 /npixbuf.width * 1.0 )",
     "\t\t\t\t    , Gdk.InterpType.NEAREST) ;",
+    "\t\t\t\tbigpixbuf = npixbuf.scale_simple(184, (int) (npixbuf.height * 184.0 /npixbuf.width * 1.0 )",
+    "\t\t\t\t    , Gdk.InterpType.NEAREST) ;",
+    "\t\t\t\t",
     "\t\t    } ",
     "\t\t} catch (Error e) {",
     "\t\t    // noop",
     "\t\t            _this.missing_thumb_pixbuf.ref();",
     "\t\t        }",
     "\t\t        pixbuf = _this.missing_thumb_pixbuf;",
+    "\t\t        bigpixbuf = _this.missing_thumb_pixbuf;",
     "",
     "\t\t    } catch (Error e) {",
     "\t\t        // noop?",
     "\t\t",
     "\t\t",
     "        m.set(iter,   3,pixbuf);",
+    "        m.set(iter,   4,pixbuf);",
     "      ",
     "        // this needs to add to the iconview?",
     "        ",
index b3232c4..e0be07c 100644 (file)
@@ -102,6 +102,9 @@ public class Xcls_PopoverFiles : Object
                        var npixbuf = new Gdk.Pixbuf.from_file(fname);
                        pixbuf = npixbuf.scale_simple(92, (int) (npixbuf.height * 92.0 /npixbuf.width * 1.0 )
                                    , Gdk.InterpType.NEAREST) ;
+                               bigpixbuf = npixbuf.scale_simple(184, (int) (npixbuf.height * 184.0 /npixbuf.width * 1.0 )
+                                   , Gdk.InterpType.NEAREST) ;
+                               
                    } 
                } catch (Error e) {
                    // noop
@@ -116,6 +119,7 @@ public class Xcls_PopoverFiles : Object
                            _this.missing_thumb_pixbuf.ref();
                        }
                        pixbuf = _this.missing_thumb_pixbuf;
+                       bigpixbuf = _this.missing_thumb_pixbuf;
     
                    } catch (Error e) {
                        // noop?
@@ -125,6 +129,7 @@ public class Xcls_PopoverFiles : Object
                
                
             m.set(iter,   3,pixbuf);
+            m.set(iter,   4,pixbuf);
           
             // this needs to add to the iconview?