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

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

index b25e556..0d087c6 100644 (file)
              "\tValue v;",
              "\tvar val = _this.iconmodel.getValue(iter, 4, v);",
              "\t",
-             "\ttooltip.set_icon(pixbuf);",
+             "\ttooltip.set_icon((Gdk.Pixbuf) val.get_object());",
              "",
-             "\t",
              "\treturn bool;",
              "}",
              ""
index 73e044d..5932038 100644 (file)
@@ -865,9 +865,8 @@ public class Xcls_PopoverFiles : Object
                Value v;
                var val = _this.iconmodel.getValue(iter, 4, v);
                
-               tooltip.set_icon(pixbuf);
+               tooltip.set_icon((Gdk.Pixbuf) val.get_object());
             
-               
                return bool;
             });
         }