XObjectBase/GtkNotebook.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 3 Jul 2012 15:11:20 +0000 (23:11 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 3 Jul 2012 15:11:20 +0000 (23:11 +0800)
XObjectBase/GtkNotebook.js

index 9c5ec2e..d74fa01 100644 (file)
@@ -14,22 +14,17 @@ GtkNotebook= XObject.define(
     }, 
     XObject,
     {
-        events : false,
+        current_page : false,
         init : function()
         {
             // is this a common feature??? of widgets ...?
             XObject.prototype.init.call(this);
             
-            current_page : 0,
-                                                    init : function() {
-                                                        XObject.prototype.init.call(this);
-                                                       this.el.set_current_page(0);
-                                                    
-                                                    },
-            
-            for (var i = 0 ; i < this.events.length ; i++ ) { 
-                this.el.add_events (this.events[i] );
+            if (this.current_page !== false)
+            {
+                this.el.set_current_page(this.current_page);
             }
+                                                    
             
         }
     }