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

index 4b5fd0c..6979fa5 100644 (file)
              "    ",
              "    ",
              "}"
+            ],
+            "query_tooltip" : [
+             "(x, y, keyboard_tooltip, tooltip) => {",
+             "",
+             "\tTreePath path;",
+             "\tCellRenderer cell;",
+             "\tvar s = _this.iconview.get_item_at_pos(x,y, out path, out cell);",
+             "\tTreeIter iter;",
+             "\t_this.iconmodel.get_iter(out iter, path);",
+             "\tValue v;",
+             "\tvar val = _this.iconmodel.getValue(iter, 4, v);",
+             "\t",
+             "\t",
+             "",
+             "\t",
+             "\treturn bool;",
+             "}",
+             ""
             ]
            },
            "xtype" : "IconView"
index 318f2f6..12b8dcc 100644 (file)
@@ -848,6 +848,21 @@ public class Xcls_PopoverFiles : Object
             
                 
                 
+            });
+            this.el.query_tooltip.connect( (x, y, keyboard_tooltip, tooltip) => {
+            
+               TreePath path;
+               CellRenderer cell;
+               var s = _this.iconview.get_item_at_pos(x,y, out path, out cell);
+               TreeIter iter;
+               _this.iconmodel.get_iter(out iter, path);
+               Value v;
+               var val = _this.iconmodel.getValue(iter, 4, v);
+               
+               
+            
+               
+               return bool;
             });
         }