Re: [Banshee-List] Gtk Event & DVD patch



I think we need to add the XOverlay inside of another EventBox. The events don't propagate down through the table, but if you change the code to 

EventBox video_event = new EventBox ();
            video_event.Add (video_display);
            video_event.Events |= Gdk.EventMask.PointerMotionMask |
                    Gdk.EventMask.ButtonPressMask |
                    Gdk.EventMask.ButtonMotionMask |
                    Gdk.EventMask.KeyPressMask |
                    Gdk.EventMask.KeyReleaseMask;
            video_event.MotionNotifyEvent += (o, a) => { Hyena.Log.Warning ("NOTION NOTIFY ON THE INSIDE EVENT BOX"); };

            table.Attach (video_event, 0, 1, 0, 1,
                AttachOptions.Expand | AttachOptions.Fill,
                AttachOptions.Expand | AttachOptions.Fill, 0, 0);


and then you can receive the events inside the video display.



--
--Alex Launi


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]