src/Builder4/PopoverFileDetails.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 12 May 2015 08:10:13 +0000 (16:10 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 12 May 2015 08:10:13 +0000 (16:10 +0800)
src/Builder4/PopoverFileDetails.vala

src/Builder4/PopoverFileDetails.bjs
src/Builder4/PopoverFileDetails.vala

index bbea7b6..73c1c7e 100644 (file)
        "$ xns" : "Gtk",
        "items" : [
         {
+         "listeners" : {
+          "activate" : "() => { this.el.hide(); }"
+         },
          "* pack" : "add",
          "xtype" : "Button",
          "string label" : "Cancel",
index 5eb887e..3b94d08 100644 (file)
@@ -643,6 +643,9 @@ public class Xcls_PopoverFileDetails : Object
 
             // set gobject values
             this.el.label = "Cancel";
+
+            // listeners 
+            this.el.activate.connect( () => { this.el.hide(); });
         }
 
         // user defined functions