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

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

index 2bdd3ea..63f603a 100644 (file)
              "",
              "\tGtk.TreePath path;",
              "\tGtk.CellRenderer cell;",
-             "\tvar s = _this.iconview.el.get_item_at_pos(x,y, out path, out cell);",
+             "\tvar s = _this.iconview.el.get_item_at_pos(x,y + _this.iconscroll.el.vadjustment.value, out path, out cell);",
              "\t",
              "\t",
              "    GLib.debug(\"Tooltip? %d,%d scroll: %d\",x,y, (int)_this.iconscroll.el.vadjustment.value);",
index 0cb95c2..d0bbdd6 100644 (file)
@@ -862,7 +862,7 @@ public class Xcls_PopoverFiles : Object
             
                Gtk.TreePath path;
                Gtk.CellRenderer cell;
-               var s = _this.iconview.el.get_item_at_pos(x,y, out path, out cell);
+               var s = _this.iconview.el.get_item_at_pos(x,y + _this.iconscroll.el.vadjustment.value, out path, out cell);
                
                
                 GLib.debug("Tooltip? %d,%d scroll: %d",x,y, (int)_this.iconscroll.el.vadjustment.value);