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

index 50006e8..ce47f57 100644 (file)
@@ -2763,7 +2763,7 @@ Window=new XObject({
                                                                                     xtype: Gtk.CheckButton,
                                                                                     listeners : {
                                                                                         toggled : function (self, state) {
-                                                                                            this.el.setText(this.el.active  ? "Auto Redraw OFF" : "Auto Redraw On");
+                                                                                            this.el.set_label(this.el.active  ? "Auto Redraw OFF" : "Auto Redraw On");
                                                                                         }
                                                                                     },
                                                                                     active : true,