RE: [g-a-devel]Accessibility for libgnome-desktop



> Subject: RE: [g-a-devel]Accessibility for libgnome-desktop
> To: Padraig Obriain sun com, gnome-accessibility-devel gnome org, 
jayaraj rajappan wipro com
> Mime-Version: 1.0
> Content-MD5: SzVIN+YUT3UHsmVBZMHHCA==
> 
> 
> 
> > 
> > -----Original Message-----
> > From: Padraig O'Briain [mailto:Padraig Obriain Sun COM]
> > Sent: Wednesday, February 20, 2002 4:23 PM
> > To: gnome-accessibility-devel gnome org; jayaraj rajappan wipro com
> > Subject: Re: [g-a-devel]Accessibility for libgnome-desktop
> > 
> > >> 1. GnomeDitemEditClass
> > >>
> > >> Tooltips need to be added at appropriate places and AtkRelation interface
> > >> should be set where ever necessary. For eg, AtkRelation has to be set
> > >> between GtkEntry & GtkLabel.
> > >>
> > 
> > >Instead of using AtkRelation, I think that you should call
> > >gtk_label_set_mnemonic_widget(). The description of this function makes it
> > sound
> > >to me that it is what you need. What do you think?
> > 
> > >The implementation in GailLabel should then set up the correct AtkRelation.
> > If
> > >not, we have a bug in GAIL.
> > 
> > Yes, i think we can use gtk_label_set_mnemonic_widget() to set the LABEL_FOR
> > relation.
> > We still need to have code in the application to set the LABELLED_BY
> > relation, right?
> > 
> 
> I was thinking that this is a bug in GAIL. 
> 
> Calling gtk_label_set_mnemonic_widget() causes a notification of a change in 
the 
> property "mnemonic_widget". GAIL should be able to set up an emission hook to 
> listen for such notifications and when one is received, determine what the 
> mnemonic widget is and cause the relation LABELLED_BY to be created.
> 
> If you agree with this approach I can add this functionality to GAIL.
>  

I have found that I cannot implement my original intention as it is not possible 
to set up an emission hook for such emissions as the notify signal does not 
permit emissions to be set up.

I think that we have two options:

1) As you suggested, addd code to the application to set the LABELLED_BY 
relation.

2) Add code such, as 
g_object_set_data (G_OBJECT(mnemonic_widget), "gail_labelled_by", label);
to the application and have GAIL construct the relation if this is set.

Padraig









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