Re: Children of menu items?
- From: "Padraig O'Briain" <Padraig Obriain Sun COM>
- To: Padraig Obriain Sun COM, bill haneman ireland sun com
- Cc: gnome-accessibility-list gnome org
- Subject: Re: Children of menu items?
- Date: Thu, 26 Apr 2001 13:14:58 +0100 (BST)
> Delivered-To: gnome-accessibility-list gnome org
> X-Accept-Language: en
> MIME-Version: 1.0
> To: "Padraig O'Briain" <Padraig Obriain Sun COM>
> Cc: gnome-accessibility-list gnome org
> Subject: Re: Children of menu items?
> Content-Transfer-Encoding: 7bit
> X-BeenThere: gnome-accessibility-list gnome org
> X-Loop: gnome-accessibility-list gnome org
> X-Mailman-Version: 2.0beta5
> List-Id: GNOME accessibility development <gnome-accessibility-list.gnome.org>
>
> Padraig O'Briain wrote:
> >
> > > >GtkMenuItem Notes:
> > > >Currently GaelMenuItem does not provide any implementation for accessible
> > > >children so it will have, by defulat, the implementation in
GaelContainer. Is
> > > >the proposal to expose a child only if it is a submenu necessary?
> > > >
> > > >***
> > > Well, an AT needs some way to determine whether a menu item is a
> > > submenu. If GaelMenuItem exposes the children represented in its
> > > GtkContainer, then we won't properly flatten the higherarky, and can't
> > > provide an AT the knowledge that the menu item has a submenu, since the
> > > submenu is not exposed as a child of the GtkContainer.
>
> I don't think we should flatten the hierarchy totally, just like so:
>
> [menubar]
> -[menubar.menu1]
> --[menubar.menu1.menuitem1]
> --[menubar.menu1.menuitem2]
> --[menubar.menu1.submenu(3)]
> ---[menubar.menu1.submenu.menuitem1]
> ---[menubar.menu1.submenu.menuitem2]
> -[menu2]
> ...
>
>
> > > ***
> > >
> > >
> >
> > It looks like we need to provide an implementation of
> > atk_object_get_n_accessible_children() and atk_object_ref_accessible_child()
for
> > GaelMenuItem so that it exposes one child if a menu item is a submenu.
>
> Why not expose all the submenu-items as children instead? This
> (proposal for one child that then has more menuitem children) seems
> like a useless indirection.
If we do this, we swallow the submenu object. I have not thought it all through
but I suspected that this would cause more problems.
Padraig
>
> > We will probably need to fiddle with the menu, i.e. set
atk_object_set_parent()
> > so that atk_object_get_index_in_parent() returns the cirrect value.
> >
> > Padraig
> >
> > _______________________________________________
> > Gnome-accessibility-list mailing list
> > Gnome-accessibility-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list
>
> --
> --------------
> Bill Haneman
> Gnome Accessibility / Batik SVG Toolkit
> Sun Microsystems Ireland
>
> _______________________________________________
> 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]