Sample/Window.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 24 May 2010 09:26:02 +0000 (17:26 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 24 May 2010 09:26:02 +0000 (17:26 +0800)
Sample/Window.js

index 9255ac0..0ea42e2 100644 (file)
@@ -2780,7 +2780,13 @@ Window=new XObject({
                                                                
                                                                 
                                                                 try {
-                                                                    
+                                                                    el.add_events(Gtk.EventMask.BUTTON_PRESS_MASK
+                                                                                      | Gtk.EventMask.BUTTON_RELEASE_MASK
+                                                                                      | Gtk.EventMask.BUTTON_MOTION_MASK
+                                                                                      | Gtk.EventMask.ENTER_NOTIFY_MASK
+                                                                                      | Gtk.EventMask.LEAVE_NOTIFY_MASK
+                                                                                      | Gtk.EventMask.POINTER_MOTION_MASK
+                                                               );
                                                                        
                                                                     el.signal.expose_event.connect(XObject.createDelegate(this.widgetExposeEvent, this, [ item  ], true));
                                                                     el.signal.drag_motion.connect(XObject.createDelegate(this.widgetDragMotionEvent, this,[ item  ], true));