Hi;

On Thu, 2008-02-28 at 13:50 -0500, Havoc Pennington wrote:
> 
> On Thu, Feb 28, 2008 at 1:31 PM, Matthew Allum <[EMAIL PROTECTED]> wrote:
> >  Check out current trunk, we've been experimenting with the easier but
> >  maybe not so nice route of taking an external display, shutting down
> >  'automatic' event collection. Im not sure if its enough however.
> >
> 
> Right, this solves one problem but not all problems - the unsolved
> problem here is allowing GTK to do event dispatch among widgets in a
> toplevel window. That is, of the widgets in a window, it decides which
> one should get a key event if any. It also does "bubbling" of events
> through the hierarchy, and implements the GTK grab mechanism
> (gtk_grab_add()).
> 
> The full solution I think is straightforward; have a way to put a
> ClutterEvent on the event queue, and have the GTK widget implement a
> GdkEvent-to-ClutterEvent translation which would be inside a
> GtkWidget::event implementation, or perhaps it should be in individual
> event handlers (key_press_event, etc.) Then a Clutter widget would
> behave like a normal GTK widget, event-wise.
> 

There is now clutter_x11_handle_event (XEvent *) or alternatively with
GDK->Clutter event translation and then clutter_do_event () - this is
what gtk-clutter-embed[1] is doing. It is not yet disabling clutters
event collection (should add).

  == Matthew


[1]
http://svn.o-hand.com/repos/clutter/trunk/clutter-gtk/clutter-gtk/gtk-clutter-embed.c

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to