src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 2 Jun 2015 11:59:19 +0000 (19:59 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 2 Jun 2015 11:59:19 +0000 (19:59 +0800)
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index 3324ba9..0eaeecf 100644 (file)
          "$ xns" : "Gtk"
         },
         {
+         "listeners" : {
+          "changed" : "() => {\n\tif (this.el.text != \"\") {\n\t\t\n\t\n\t}\n}\n"
+         },
          "id" : "search_entry",
          "* init" : "var description =   Pango.FontDescription.from_string(\"monospace\");\n\tdescription.set_size(8000);\n\t this.el.override_font(description);\n\n",
          "* pack" : "pack_start,false,true,0",
index 1602d33..1ae1444 100644 (file)
@@ -2324,6 +2324,14 @@ public class Xcls_MainWindow : Object
             var description =   Pango.FontDescription.from_string("monospace");
                description.set_size(8000);
                 this.el.override_font(description);
+
+            //listeners
+            this.el.changed.connect( () => {
+               if (this.el.text != "") {
+                       
+               
+               }
+            });
         }
 
         // user defined functions