[Banshee-List] Gtk Event & DVD patch



Good morning,

OK, we have an issue to get mouse button event in now playing when we are not in fullscreen mode.
This bug seems already known (�https://bugzilla.gnome.org/show_bug.cgi?id=535185�).
But this is needed for DVD menu navigation (https://bugzilla.gnome.org/show_bug.cgi?id=549568).
So, if we solve that, we solve 2 bugs.

So here is what we try (with lamalex):
- change event mask in XOverlayVideoDisplay and catch event here but fail.
- directly add event in NowPlayingInterface on the Contents but fail.

According to FAQ of GTk: there is 3 reasons for event not fired :
1. The widget has no GdkWindow
2. The eventmask do not contain our event
3. A child widget handle the event so avoid propagation.

==> keypress is triggered so seems related to 2. or 3.
==> the child of contents is�XOverlayVideoDisplay and his eventmask is wrong but change it do not fixed it.
==> Contents.IsNoWindow is true after reparent to frame so seems related to 1.�
but in contradiction with keypress working event and frame are in a gtk chain of widget:
PlayerInterface -> primary_vbox-> views_pane -> view_container -> NowPlayingInterface -> frame
????

I try to set event only after reparent but change nothing...

So, is there any gtk expert who know why the widget is never called (or how get log to found why)...
NB: Of course, I grab focus on contents.Shown ();

I have spent 3 hours on that, so do not want to waste more time on it...
help is really welcome...

regards,

Olivier Dufour


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