src/Builder4/Editor.bjs
authorAlan <alan@roojs.com>
Wed, 27 Mar 2024 09:07:37 +0000 (17:07 +0800)
committerAlan <alan@roojs.com>
Wed, 27 Mar 2024 09:07:37 +0000 (17:07 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index aa6b0d3..058f3d1 100644 (file)
            "items" : [
             {
              "$ xns" : "Gtk",
+             "listeners" : {
+              "pressed" : [
+               "(n_press, x, y) => {",
+               "",
+               "",
+               "}",
+               ""
+              ]
+             },
              "xtype" : "GestureClick"
             }
            ],
index 21d4908..7022583 100644 (file)
@@ -549,6 +549,9 @@ public class Editor : Object
                        this.el.justify = Gtk.Justification.LEFT;
                        this.el.hexpand = true;
                        this.el.xalign = 0f;
+                       var child_1 = new Xcls_GestureClick61( _this );
+                       child_1.ref();
+                       this.el.add_controller(  child_1.el );
 
                        //listeners
                        this.el.query_tooltip.connect( (x, y, keyboard_tooltip, tooltip) => {
@@ -604,6 +607,34 @@ public class Editor : Object
                        
                }
        }
+       public class Xcls_GestureClick61 : Object
+       {
+               public Gtk.GestureClick el;
+               private Editor  _this;
+
+
+                       // my vars (def)
+
+               // ctor
+               public Xcls_GestureClick61(Editor _owner )
+               {
+                       _this = _owner;
+                       this.el = new Gtk.GestureClick();
+
+                       // my vars (dec)
+
+                       // set gobject values
+
+                       //listeners
+                       this.el.pressed.connect( (n_press, x, y) => {
+                       
+                       
+                       });
+               }
+
+               // user defined functions
+       }
+
 
        public class Xcls_Scale6 : Object
        {