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

OK, good news just gone further.
When I comment the line XOverlayVideoDisplay line 46
//WidgetFlags = WidgetFlags.NoWindow;

event is fired! but it is a bit buggy because window blink ans seems rebuild and fullscreen do not worked anymore.

Anyway, mouse event is not fired because of that. So, it is a good way to find the solution.

Olivier Dufour

On Tue, Dec 21, 2010 at 9:52 AM, olivier dufour <olivier duff gmail com> wrote:
it change nothing for me...
I never get mouse move or mouse button pressed event....
Have you tested your solution.
If yes, you must have change something else...

Olivier Dufour

On Mon, Dec 20, 2010 at 4:03 PM, Alex Launi <alex launi gmail com> wrote:
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 |
            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

banshee-list mailing list
banshee-list gnome org  (unsubscribe here)

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