Re: Property Change Notifications



> X-Sender: mm128299 bes central sun com
> To: "Padraig O'Briain" <Padraig Obriain sun com>, 
gnome-accessibility-list gnome org
> Subject: Re: Property Change Notifications
> Mime-Version: 1.0
> 
> Hi Padraig,
> 
> At 03:02 PM 5/11/2001 +0100, Padraig O'Briain wrote:
> >...
> >accessible-name
> >accessible-description
> >
> >   These are implemented as standard Gobject properties and a 
> > g_object_notify()
> >   call is made when the property is changed.
> >
> >accessible-state
> >
> >   For accessible state the old and new values will be available but only
> >   one of them will be set and will indicate how the state has changed;
> >   e.g. if old_value is ATK_STATE_FOCUSED it means that the object has lost
> >   focus and if the new value is ATK_STATE_FOCUSED it means that the object
> >   has gained focus.
> >
> >Pardon my ignorance, but what is the reasoning behind not exposing all 
> >state changes?

This mail describes the current state of the implementation; well, not quite as 
I have not tested all the states I listed here. I am willing to expose all state 
changes, subject to the condition that I have an example against which to test 
against.

Padraig

> 
> >   Changes of the following states will be notified:
> >
> >   ATK_STATE_FOCUSED
> >
> >Originally this was implemented by by specifying a signal handler for
> >focus-in and focus-out events on the GtkWidget. I would prefer to
> >implement usoing "has-focus" property of GtkWidget but there are issues
> >in GTK with property notifications that are holding me up at the moment.
> >
> >
> >   ATK_STATE_DEFUNCT
> >
> >When the AtkObject corresponding to the widget is created a signal handler
> >for the "destroy" signal on the widget is specified in the call to
> >gtk_accessible_connect_widget_destroyed() which is called from
> >gail_widget_set_widget() which is called each time a widget's accessible
> >is created. When the signal handler, gail_widget_destroyed(), is called
> >a property changed signal is emitted for the property "accessible-state" with
> >the new value being ATK_STATE_DEFUNCT.
> >
> >
> >   ATK_STATE_VISIBLE
> >
> >I hope to associate this with the GtkWidget property "visible".
> >
> >   ATK_STATE_SHOWING
> >
> >I hope to associate this with the GtkWidget property ""mapped".
> >
> >
> >The others I can think of offhand are ATK_STATE_CHECKED 
> >ATK_STATE_EXPANDED/ATK_STATE_COLLAPSED.
> 
> 
> Marc
> 
> 
> 
> 
> >_______________________________________________
> >gnome-accessibility-list mailing list
> >gnome-accessibility-list gnome org
> >http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list
> 





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