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

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

index 4f47d9d..9064d2c 100644 (file)
              "\t_this.iconmodel.el.get_value(iter, 4, out val);",
              "\t",
              "\ttooltip.set_icon((Gdk.Pixbuf) val.get_object());",
-             "",
+             "\tvar rect = Gdk.Rectangle() {",
+             "\t\tx : x,",
+             "\t\ty : y, ",
+             "\t\twidth : 184,",
+             "\t\theight: 184",
+             "\t};",
+             "\t",
+             "\ttooltip.set_tip_area(rect);",
              "\treturn true;",
              "}",
              ""
index a1eb9f2..adaf4a1 100644 (file)
@@ -871,7 +871,14 @@ public class Xcls_PopoverFiles : Object
                _this.iconmodel.el.get_value(iter, 4, out val);
                
                tooltip.set_icon((Gdk.Pixbuf) val.get_object());
-            
+               var rect = Gdk.Rectangle() {
+                       x : x,
+                       y : y, 
+                       width : 184,
+                       height: 184
+               };
+               
+               tooltip.set_tip_area(rect);
                return true;
             });
         }