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

index cac9da9..50006e8 100644 (file)
@@ -2762,10 +2762,11 @@ Window=new XObject({
                                                                                 {
                                                                                     xtype: Gtk.CheckButton,
                                                                                     listeners : {
-                                                                                        state_changed : function (self, state) {
-                                                                                            this.setText(state ? "Auto Redraw OFF" : "Auto Redraw On");
+                                                                                        toggled : function (self, state) {
+                                                                                            this.el.setText(this.el.active  ? "Auto Redraw OFF" : "Auto Redraw On");
                                                                                         }
                                                                                     },
+                                                                                    active : true,
                                                                                     label : "Auto Redraw On",
                                                                                     pack : "pack_start,false,false,0"
                                                                                 }