Re: Unsupportable ATK interfaces??
- From: Peter Korn <peter korn sun com>
- Cc: Niall Power sun com, gnome-accessibility-list gnome org
- Subject: Re: Unsupportable ATK interfaces??
- Date: Thu, 24 May 2001 15:04:33 -0700
Hi Padraig,
> This suggestion is different from Peter's in a later email which proposes, in
> essence, that the ATK interface should fail silently (and hopefully
> gracefully) if an implementation is not provided.
>
> Marc proposes somthing more ambitious, i.e. that we attempt to tell the caller
> that the interface is not supported. Do we need to do this?
I don't have a strong opinion on this. The contract needs to be clear, and the
failures obvious. There is not a whole lot of difference between:
if ((result = someAtkCall()) == false) {
return;
}
and
if ((result = someAtkCall()) == (void *) 0) {
return;
}
Now, if we want to make the return values ints, and have a set of error
conditions that's quite another matter...
Peter
> > Delivered-To: gnome-accessibility-list gnome org
> > X-Sender: mm128299 bes central sun com
> > To: Niall Power - Sun Microsystems Ireland - Desktop Engineer
> <Niall Power Sun COM>, gnome-accessibility-list gnome org
> > Subject: Re: Unsupportable ATK interfaces??
> > Mime-Version: 1.0
> > 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>
> >
> > I notice that some ATK functions have a void return type. Should we ensure
> > that all methods return at least a boolean so that we can return an nerror
> > code for unsupported methods?
> >
> > Marc
> >
> > At 03:15 PM 5/23/2001 +0100, Niall Power - Sun Microsystems Ireland -
> > Desktop Engineer wrote:
> > >Does anyone know or have any suggestions on how to
> > >deal with ATK interfaces that cannot be implemented
> > >in the underlying toolkit?
> > >e.g GailCList implements the AtkSelection and AtkTable
> > >interfaces but there are several attributes to AtkTable
> > >that are not applicable to a GtlClist widget:
> > >is_column_selected();
> > >get_selected_columns();
> > >get_column_extent_at();
> > >
> > >These are just a few examples.
> > >
> > >Thanks,
> > >
> > >Niall
> > >
> > >-------------------------------------------
> > > <O Niall Power
> > > ( \ Sun Microsystems Ltd - Ireland
> > > X Desktop Engineer. +353-1-8199097
> > >8===D niall power ireland sun com
> > >-------------------------------------------
> > >
> > >
> > >_______________________________________________
> > >gnome-accessibility-list mailing list
> > >gnome-accessibility-list gnome org
> > >http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list
> >
> >
> > _______________________________________________
> > gnome-accessibility-list mailing list
> > gnome-accessibility-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-list
>
> _______________________________________________
> 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]