Sample/Window.bjs
authorAlan Knowles <alan@akbkhome.com>
Thu, 14 Oct 2010 09:04:13 +0000 (17:04 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 14 Oct 2010 09:04:13 +0000 (17:04 +0800)
Sample/Window.bjs

index a41b215..39dcef4 100644 (file)
                                                                                             "|xns": "Gtk"
                                                                                         },
                                                                                         {
+                                                                                            "listeners": {
+                                                                                                "state_changed": "function (self, state) {\n    this.setText(state ? \"Auto Redraw OFF\" : \"Auto Redraw On\");\n}"
+                                                                                            },
                                                                                             "label": "Redraw",
                                                                                             "pack": "pack_start,false,false,0",
                                                                                             "xtype": "Button",
-                                                                                            "|xns": "Gtk",
-                                                                                            "listeners": {
-                                                                                                "state_changed": "function (self, state) {\n\n}"
-                                                                                            }
+                                                                                            "|xns": "Gtk"
                                                                                         }
                                                                                     ]
                                                                                 },