Hi Li and everyone,

Thanks, :) the code is correct.. had been wondering about the same..

Well, I require a way to get the "name" (Lb2) field in this case.
Reason being that is the requirement of the application I am
developing.

Any ideas, would be good ..

Regards,
Udayan



On 4/23/07, Li Yuan <[EMAIL PROTECTED]> wrote:
> Hi Udayan,
>
> I assume you are using Firefox as the browser. If you got the name
> successfully, I think there is nothing wrong in your code. It depends on
> what Firefox returns to the application you wrote.
>
> Ginn or Evan, Do you have any comment?
>
> Regards,
> Li
>
> 在 2007-04-21六的 13:23 +0530,Udayan Singh写道:
> > Hi All,
> >
> > I have been using "cspi" (i.e. at-spi) library in my application.
> > Scenario is that I am using HTML programming on web page and the
> > application is executing in GNOME environment (GTK+ is for UI and C
> > Programming).
> >
> > So the web page has something like this :
> >
> >
> > .....
> >
> > <p>
> > <label for="Label2">Label2:</label>
> > <input type="text" name="Lb2" id="Label2" value="Some Text" />
> > </p>
> >
> > .....
> >
> > On the Application (which is using cspi -- All coding done in C
> > programming) if I have code like..
> >
> > static void
> > recv_text_event (const AccessibleEvent *event,
> >                  void                  *data)
> > {
> >    char *name = NULL;
> >    name = Accessible_getName (event->source);
> >    g_print("Name of event's source : %s\n", name);
> >
> >    return;
> > }
> >
> >
> > init_func()
> > {...
> >
> >        acclis = SPI_createAccessibleEventListener (
> >                recv_text_event, NULL);
> >
> >        for (i = 0; evt_names[i]; ++i) {
> >            SPI_registerGlobalEventListener (acclis, evt_names[i]);
> >        }
> > ....
> >
> > }
> >
> > ................................................
> >
> > Now if i click on the text box that Label2 will have then the output
> > that I get is :
> >
> > Name of event's source : Label2
> >
> > ................................................
> > But I want to get the "name" i.e. "Lb2".
> >
> > Which API should I use to get this done ? Any inputs would be great.
> >
> > Thanks in advance..
> >
> > Regards,
> >
> > Udayan
> > _______________________________________________
> > gnome-accessibility-list mailing list
> > [email protected]
> > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list
>
>
_______________________________________________
gnome-accessibility-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list

Reply via email to