Hi,

Le samedi 16 juillet 2005 à 18:12 +0200, Guillaume Desmottes a écrit :
> Le lundi 27 juin 2005 à 00:35 +0200, Christian Persch a écrit :
> > > I'm trying to write a epiphany extension with python and i would like to
> > > interact with form input fields.
> > > I have added a menu entry into 
> > > <popup name="EphyInputPopup" action="PopupAction"> .
> > > 
> > > In the callback, i would like to get (and set) text from the field from
> > > where the menu was called.
> > > 
> > > Any idea about this?
> > 
> > That's a bit complicated, you'll need to do some C++ programming.
> > 
> > You can get the nsIDOMEvent* out of the EphyEmbedEvent, then get the
> > event target from it, QI it to nsIDOMHTMLInputElement* or so, and do the
> > deed.
> > 
> 
> Thanks for your answer.
> How can i get the EphyEmbedEvent? I have just the GtkAction and
> EphyWindow into the callback.
> 

You can get it as a gobject data on the window, see
http://cvs.gnome.org/viewcvs/epiphany/src/popup-commands.c?rev=1.52&view=markup
get_event_info().

Regards,
        Christian

_______________________________________________
epiphany-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/epiphany-list

Reply via email to