Re: manipulate form's fields
- From: Christian Persch <chpe gnome org>
- To: Guillaume Desmottes <cass skynet be>
- Cc: epiphany-list gnome org
- Subject: Re: manipulate form's fields
- Date: Sat, 16 Jul 2005 23:48:39 +0200
Hi,
Le samedi 16 juillet 2005 �8:12 +0200, Guillaume Desmottes a �it :
> Le lundi 27 juin 2005 �0:35 +0200, Christian Persch a �it :
> > > 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]