From Sam.Quiring@windriver.com Mon Dec 1 20:30:42 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CBAE4750101 for ; Mon, 1 Dec 2008 20:30:42 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.998 X-Spam-Level: X-Spam-Status: No, score=-1.998 tagged_above=-999 required=2 tests=[BAYES_50=0.001, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4+TjV7EuGqBW for ; Mon, 1 Dec 2008 20:30:36 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id 2D86B7500E7 for ; Mon, 1 Dec 2008 20:30:33 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mB1KUWhV005420 for ; Mon, 1 Dec 2008 12:30:32 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 1 Dec 2008 12:30:32 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C953F3.A7D323E0" Date: Mon, 1 Dec 2008 12:30:30 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: child of application has no parent Thread-Index: AclT86atzZpBK1LBQDKTQ2PV8+Y77Q== From: "Quiring, Sam" To: X-OriginalArrivalTime: 01 Dec 2008 20:30:32.0427 (UTC) FILETIME=[A8674BB0:01C953F3] Subject: [g-a-devel] child of application has no parent X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 20:30:43 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C953F3.A7D323E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Greetings, =20 My experimentation shows that if an Accessible *object has role "application" and Accessible_isApplication(object) is true, object can have children. In my tests so far, these direct children of an "application" have no parent. Is that to be expected? =20 -Sam ------_=_NextPart_001_01C953F3.A7D323E0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Greetings,
 
My = experimentation=20 shows that if an Accessible *object has role "application" and=20 Accessible_isApplication(object) is true, object can have = children. =20 In my tests so far, these direct children of an "application" have no=20 parent.  Is that to be expected?
 
-Sam
------_=_NextPart_001_01C953F3.A7D323E0-- From nagappan@gmail.com Mon Dec 1 21:08:23 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 553087500C2 for ; Mon, 1 Dec 2008 21:08:23 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.598 X-Spam-Level: X-Spam-Status: No, score=-2.598 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 2) (firewall!) (up: 9096 hrs), (distance 15, link: (Google 2)), [74.125.46.31] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v-2Tzygw+yvp for ; Mon, 1 Dec 2008 21:08:14 +0000 (GMT) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by menubar.gnome.org (Postfix) with ESMTP id 36198750080 for ; Mon, 1 Dec 2008 21:08:13 +0000 (GMT) Received: by yw-out-2324.google.com with SMTP id 5so1017756ywh.63 for ; Mon, 01 Dec 2008 13:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=CSAgQG8Rdp++96JG+IxroVMs2tFmgh1zEOI8Yp3KiBo=; b=mI2yDshU7i5UPr/usCIxaHiSRGoOHovQ85fHnIAqU8YXswREX4tCD+2BcUw8psQ8cA zH1EYXOu/tL5q56jr2wbxnOvtzyaWKAPQ7QIlGLptjWjIOSBZO1rehqrSwI5oHBxD0hZ iOLsT+kXqexCTFUUbO+a+Ehc0oe8k2OVnMAFI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=dopez7Kyu9+k+javorbUO2A5+gb9G2f6NDPTp8ePG0pterhIadBF3InTQ7kgd4Lzt5 Ut8xnFM0Oq9E6OH0/69P3JuM3xuI237YiuYVO6LccbbYGR+isvvGCdZ/pYnOGiTgWYgQ X2fhF6E1FPa3IEUL4eoVf86PH6/QYv6cjPoOk= Received: by 10.151.100.17 with SMTP id c17mr22455685ybm.204.1228165693142; Mon, 01 Dec 2008 13:08:13 -0800 (PST) Received: by 10.151.121.13 with HTTP; Mon, 1 Dec 2008 13:08:13 -0800 (PST) Message-ID: <9d0602eb0812011308r5c688d6fo3987531d85ffc456@mail.gmail.com> Date: Mon, 1 Dec 2008 13:08:13 -0800 From: "Nagappan A" To: "Quiring, Sam" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_90901_1827645.1228165693128" References: Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] child of application has no parent X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 21:08:23 -0000 ------=_Part_90901_1827645.1228165693128 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Sam, I haven't noticed this, but I have noticed for Thunderbird and Gantt Chart something similar to this and handled the case like this: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/remap.c#n1320 Thanks Nagappan 2008/12/1 Quiring, Sam > Greetings, > > My experimentation shows that if an Accessible *object has role > "application" and Accessible_isApplication(object) is true, object can have > children. In my tests so far, these direct children of an "application" > have no parent. Is that to be expected? > > -Sam > > _______________________________________________ > Gnome-accessibility-devel mailing list > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel > > -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com ------=_Part_90901_1827645.1228165693128 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Sam,

I haven't noticed this, but I have noticed for Thunderbird and Gantt Chart something similar to this and handled the case like this: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/remap.c#n1320

Thanks
Nagappan

2008/12/1 Quiring, Sam <Sam.Quiring@windriver.com>
Greetings,
 
My experimentation shows that if an Accessible *object has role "application" and Accessible_isApplication(object) is true, object can have children.  In my tests so far, these direct children of an "application" have no parent.  Is that to be expected?
 
-Sam

_______________________________________________
Gnome-accessibility-devel mailing list
Gnome-accessibility-devel@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel




--
Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
------=_Part_90901_1827645.1228165693128-- From Sam.Quiring@windriver.com Mon Dec 1 22:43:39 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9544D750094 for ; Mon, 1 Dec 2008 22:43:39 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.598 X-Spam-Level: X-Spam-Status: No, score=-4.598 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1jbe9GwJRNXo for ; Mon, 1 Dec 2008 22:43:31 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id E27CA7500A5 for ; Mon, 1 Dec 2008 22:43:30 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mB1MhQgV001217; Mon, 1 Dec 2008 14:43:26 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 1 Dec 2008 14:43:26 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C95406.38DDC37C" Date: Mon, 1 Dec 2008 14:43:25 -0800 Message-ID: In-Reply-To: <9d0602eb0812011308r5c688d6fo3987531d85ffc456@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [g-a-devel] child of application has no parent Thread-Index: AclT+PBLAzQL1kx+S0+dMUaM+k0UNwADO7hw References: <9d0602eb0812011308r5c688d6fo3987531d85ffc456@mail.gmail.com> From: "Quiring, Sam" To: "Nagappan A" X-OriginalArrivalTime: 01 Dec 2008 22:43:26.0165 (UTC) FILETIME=[391F2850:01C95406] Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] child of application has no parent X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Dec 2008 22:43:39 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C95406.38DDC37C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Nagappann, =20 Thanks for the reply. I had a bug in my prototype code - I am now getting the parent Accessible of every child. Also, thanks for the code pointer. =20 -Sam ________________________________ From: Nagappan A [mailto:nagappan@gmail.com]=20 Sent: Monday, December 01, 2008 1:08 PM To: Quiring, Sam Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] child of application has no parent Hi Sam, I haven't noticed this, but I have noticed for Thunderbird and Gantt Chart something similar to this and handled the case like this: http://cgit.freedesktop.org/ldtp/ldtp/tree/src/remap.c#n1320 Thanks Nagappan 2008/12/1 Quiring, Sam Greetings, =20 My experimentation shows that if an Accessible *object has role "application" and Accessible_isApplication(object) is true, object can have children. In my tests so far, these direct children of an "application" have no parent. Is that to be expected? =20 =09 -Sam _______________________________________________ Gnome-accessibility-devel mailing list Gnome-accessibility-devel@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel =09 =09 --=20 Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com ------_=_NextPart_001_01C95406.38DDC37C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Nagappann,
 
Thanks for the reply.  I had a bug in my = prototype=20 code - I am now getting the parent Accessible of every child.  = Also, thanks=20 for the code pointer.
 
-Sam


From: Nagappan A = [mailto:nagappan@gmail.com]=20
Sent: Monday, December 01, 2008 1:08 PM
To: = Quiring,=20 Sam
Cc: gnome-accessibility-devel@gnome.org
Subject: = Re:=20 [g-a-devel] child of application has no parent

Hi Sam,

I haven't noticed this, but I have noticed for = Thunderbird and Gantt Chart something similar to this and handled the = case like=20 this: htt= p://cgit.freedesktop.org/ldtp/ldtp/tree/src/remap.c#n1320

Than= ks
Nagappan

2008/12/1 Quiring, Sam <Sam.Quiring@windriver.com&g= t;
Greetings,
 
My experimentation shows that = if an=20 Accessible *object has role "application" and = Accessible_isApplication(object)=20 is true, object can have children.  In my tests so far, = these direct=20 children of an "application" have no parent.  Is that to be=20 expected?
 
-Sam

_________________= ______________________________
Gnome-accessibility-devel=20 mailing list
Gnome-accessibility-d= evel@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-accessibilit= y-devel



--
Linux Desktop (GUI Application) Testing Project - = http://ldtp.freedesktop.org
<= A=20 href=3D"http://nagappanal.blogspot.com">http://nagappanal.blogspot.com
------_=_NextPart_001_01C95406.38DDC37C-- From Sam.Quiring@windriver.com Wed Dec 3 19:20:11 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EC8A175009F for ; Wed, 3 Dec 2008 19:20:10 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.739 X-Spam-Level: X-Spam-Status: No, score=-2.739 tagged_above=-999 required=2 tests=[BAYES_20=-0.74, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0XvToVJFr-LB for ; Wed, 3 Dec 2008 19:20:03 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id BE6E175007F for ; Wed, 3 Dec 2008 19:20:00 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mB3JJmC1024073 for ; Wed, 3 Dec 2008 11:19:48 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 3 Dec 2008 11:19:48 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9557C.1BAD719A" Date: Wed, 3 Dec 2008 11:19:47 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Slider: Text has weird chars Thread-Index: AclVfBtCSuOpVY+tSZS305k8A8BoLg== From: "Quiring, Sam" To: X-OriginalArrivalTime: 03 Dec 2008 19:19:48.0790 (UTC) FILETIME=[1BD32D60:01C9557C] Subject: [g-a-devel] Slider: Text has weird chars X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2008 19:20:11 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C9557C.1BAD719A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Greetings, =20 I'm using Accessibility to examine a horizonal slider (creation code shown below). The Accessibility *object has roleName "slider". The sub interfaces are: Action, Component, Text, and Value. On the GUI I moved the slider to have value 57.4. When I retrieve the text, it comes back with 5 characters. The last 4 characters are "57.4" as expected. The first character is a UTF8 three byte sequence whose value is 200e. What does this mean and why is it there? The value 200e looks like a non-printing character to me. What is its purpose? =20 Here is the code that created the slider: =20 static void scale_set_default_values(GtkScale *scale) { gtk_range_set_update_policy(GTK_RANGE(scale), GTK_UPDATE_CONTINUOUS); gtk_scale_set_digits(scale, 1); gtk_scale_set_value_pos(scale, GTK_POS_TOP); gtk_scale_set_draw_value(scale, TRUE); } ... GtkObject *adjustment =3D gtk_adjustment_new(0.0, 0.0, 101.0, 0.1, 1.0, 1.0); GtkWidget *gtkHScale =3D gtk_hscale_new(GTK_ADJUSTMENT(adjustment)); scale_set_default_values(GTK_SCALE(gtkHScale)); -Sam ------_=_NextPart_001_01C9557C.1BAD719A Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Greetings,
 
I'm = using=20 Accessibility to examine a horizonal slider (creation code shown = below). =20 The Accessibility *object = has roleName=20 "slider".  The sub interfaces are: Action, Component, Text, = and=20 Value.  On the GUI I moved the slider to have value 57.4.  = When I=20 retrieve the text, it comes back with 5 characters.  The last 4 = characters=20 are "57.4" as expected.  The first character is a UTF8 three = byte=20 sequence whose value is 200e.  What does this mean and why is it=20 there?  The value 200e looks like a non-printing character to=20 me.  What is its purpose?
 
Here = is the code=20 that created the slider:
 
static void=20 scale_set_default_values(GtkScale *scale)
{
   =20 gtk_range_set_update_policy(GTK_RANGE(scale),=20 GTK_UPDATE_CONTINUOUS);
    = gtk_scale_set_digits(scale,=20 1);
    gtk_scale_set_value_pos(scale,=20 GTK_POS_TOP);
    gtk_scale_set_draw_value(scale,=20 TRUE);
}
...
    GtkObject *adjustment =3D=20 gtk_adjustment_new(0.0, 0.0, 101.0, 0.1, 1.0, = 1.0);
   =20 GtkWidget *gtkHScale =3D=20 gtk_hscale_new(GTK_ADJUSTMENT(adjustment));
   =20 scale_set_default_values(GTK_SCALE(gtkHScale));
-Sam
------_=_NextPart_001_01C9557C.1BAD719A-- From omajid@redhat.com Wed Dec 3 19:21:48 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 45FB175009F for ; Wed, 3 Dec 2008 19:21:48 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -6.599 X-Spam-Level: X-Spam-Status: No, score=-6.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 3) (NAT!) (up: 4488 hrs), (distance 15, link: GPRS, T1, FreeS/WAN), [66.187.237.31] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VZoI8I8dr7Il for ; Wed, 3 Dec 2008 19:21:40 +0000 (GMT) Received: from mx2.redhat.com (mx2.redhat.com [66.187.237.31]) by menubar.gnome.org (Postfix) with ESMTP id 1A47E750008 for ; Wed, 3 Dec 2008 19:21:39 +0000 (GMT) Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mB3JLc11021574 for ; Wed, 3 Dec 2008 14:21:38 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mB3JLbIg032399 for ; Wed, 3 Dec 2008 14:21:38 -0500 Received: from toddler.yyz.redhat.com (toddler.yyz.redhat.com [10.15.16.34]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mB3JLaev007736 for ; Wed, 3 Dec 2008 14:21:37 -0500 Message-ID: <4936DC40.4070801@redhat.com> Date: Wed, 03 Dec 2008 14:21:36 -0500 From: Omair Majid User-Agent: Thunderbird 2.0.0.18 (X11/20081119) MIME-Version: 1.0 To: gnome-accessibility-devel@gnome.org Content-Type: multipart/mixed; boundary="------------060805090409000100030602" X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Subject: [g-a-devel] [PATCH] java-access-bridge: handle selecting text and typing over it X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2008 19:21:48 -0000 This is a multi-part message in MIME format. --------------060805090409000100030602 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I apologise if this is not the correct place for the patch. This is a patch for the java-access-bridge in gnome (http://live.gnome.org/Java%20Access%20Bridge). Using a swing JTextField, if a user selects text and starts typing to replace it, a StringIndexOutOfBoundsException is thrown in . The following events are observed through acccerciser in gedit when selecting text and typing over it: object:text-changed:delete object:text-changed:insert object:text-caret-moved While the Swing program only emits object:text-changed:delete object:text-changed:insert The 'object:text-caret-moved' event is not sent. The attached patch catches the exception and silently ignores it, ensuring the selection-changed event is not sent and the text-caret-moved event is. Cheers, Omair --------------060805090409000100030602 Content-Type: text/plain; name="stack-trace.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="stack-trace.txt" Thread [AWT-EventQueue-2] (Suspended (exception StringIndexOutOfBoundsException)) String.substring(int, int) line: 1946 JavaBridge.dispatchCaretProperty(PropertyChangeEvent) line: 608 JavaBridge$1.propertyChange(PropertyChangeEvent) line: 69 PropertyChangeSupport.fire(PropertyChangeListener[], PropertyChangeEvent) line: 298 PropertyChangeSupport.firePropertyChange(PropertyChangeEvent) line: 291 PropertyChangeSupport.firePropertyChange(String, Object, Object) line: 229 JTextField$AccessibleJTextField(AccessibleContext).firePropertyChange(String, Object, Object) line: 743 JTextField$AccessibleJTextField(JTextComponent$AccessibleJTextComponent).caretUpdate(CaretEvent) line: 2591 JTextField(JTextComponent).fireCaretUpdate(CaretEvent) line: 408 JTextComponent$MutableCaretEvent.fire() line: 4406 JTextComponent$MutableCaretEvent.stateChanged(ChangeEvent) line: 4428 BasicTextUI$BasicCaret(DefaultCaret).fireStateChanged() line: 799 BasicTextUI$BasicCaret(DefaultCaret).changeCaretPosition(int, Position$Bias) line: 1274 BasicTextUI$BasicCaret(DefaultCaret).handleSetDot(int, Position$Bias) line: 1170 BasicTextUI$BasicCaret(DefaultCaret).setDot(int, Position$Bias) line: 1151 DefaultCaret$Handler.insertUpdate(DocumentEvent) line: 1719 PlainDocument(AbstractDocument).fireInsertUpdate(DocumentEvent) line: 202 PlainDocument(AbstractDocument).handleInsertString(int, String, AttributeSet) line: 751 PlainDocument(AbstractDocument).insertString(int, String, AttributeSet) line: 710 PlainDocument.insertString(int, String, AttributeSet) line: 131 PlainDocument(AbstractDocument).replace(int, int, String, AttributeSet) line: 672 JTextField(JTextComponent).replaceSelection(String) line: 1368 DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(ActionEvent) line: 876 SwingUtilities.notifyAction(Action, KeyStroke, KeyEvent, Object, int) line: 1661 JTextField(JComponent).processKeyBinding(KeyStroke, KeyEvent, int, boolean) line: 2860 JTextField(JComponent).processKeyBindings(KeyEvent, boolean) line: 2895 JTextField(JComponent).processKeyEvent(KeyEvent) line: 2823 JTextField(Component).processEvent(AWTEvent) line: 5885 JTextField(Container).processEvent(AWTEvent) line: 2105 JTextField(Component).dispatchEventImpl(AWTEvent) line: 4469 JTextField(Container).dispatchEventImpl(AWTEvent) line: 2163 JTextField(Component).dispatchEvent(AWTEvent) line: 4295 DefaultKeyboardFocusManager(KeyboardFocusManager).redispatchEvent(Component, AWTEvent) line: 1881 DefaultKeyboardFocusManager.dispatchKeyEvent(KeyEvent) line: 742 DefaultKeyboardFocusManager.preDispatchKeyEvent(KeyEvent) line: 1007 DefaultKeyboardFocusManager.typeAheadAssertions(Component, AWTEvent) line: 879 DefaultKeyboardFocusManager.dispatchEvent(AWTEvent) line: 706 AppletViewer(Component).dispatchEventImpl(AWTEvent) line: 4339 AppletViewer(Container).dispatchEventImpl(AWTEvent) line: 2163 AppletViewer(Window).dispatchEventImpl(AWTEvent) line: 2478 AppletViewer(Component).dispatchEvent(AWTEvent) line: 4295 EventQueue.dispatchEvent(AWTEvent) line: 604 EventDispatchThread.pumpOneEventForFilters(int) line: 275 EventDispatchThread.pumpEventsForFilter(int, Conditional, EventFilter) line: 200 EventDispatchThread.pumpEventsForHierarchy(int, Conditional, Component) line: 190 EventDispatchThread.pumpEvents(int, Conditional) line: 185 EventDispatchThread.pumpEvents(Conditional) line: 177 EventDispatchThread.run() line: 138 --------------060805090409000100030602 Content-Type: text/x-patch; name="java-access-bridge-type-over.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="java-access-bridge-type-over.patch" Index: bridge/org/GNOME/Accessibility/JavaBridge.java =================================================================== --- bridge/org/GNOME/Accessibility/JavaBridge.java (revision 232) +++ bridge/org/GNOME/Accessibility/JavaBridge.java (working copy) @@ -623,16 +623,21 @@ } oldFocusSelectStart = selection_start; oldFocusSelectEnd = selection_end; - if (selection_change_start != selection_change_end) { - selection_any.insert_string (oldFocusText.substring ( - Math.min (selection_change_start, selection_change_end), - Math.max (selection_change_start, selection_change_end))); - dispatchEvent (e.getSource(), - "object:text-selection-changed", - selection_start, selection_end, - selection_any); - } + try { + if (selection_change_start != selection_change_end) { + selection_any.insert_string (oldFocusText.substring ( + Math.min (selection_change_start, selection_change_end), + Math.max (selection_change_start, selection_change_end))); + dispatchEvent (e.getSource(), + "object:text-selection-changed", + selection_start, selection_end, + selection_any); + } + } catch(StringIndexOutOfBoundsException indexException) { + // the selection_change_end index may be more than the + // length of the string. ignore this case silently } + } } dispatchEvent(e.getSource(), "object:text-caret-moved", --------------060805090409000100030602-- From William.Walker@Sun.COM Wed Dec 3 23:30:37 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 820997500A3 for ; Wed, 3 Dec 2008 23:30:37 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -7.599 X-Spam-Level: X-Spam-Status: No, score=-7.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_MED=-4] X-Amavis-OS-Fingerprint: Solaris 9, (distance 13, link: ethernet/modem), [192.18.98.43] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FrX9DRXkL075 for ; Wed, 3 Dec 2008 23:30:29 +0000 (GMT) Received: from brmea-mail-2.sun.com (brmea-mail-2.Sun.COM [192.18.98.43]) by menubar.gnome.org (Postfix) with ESMTP id B9AD475007F for ; Wed, 3 Dec 2008 23:30:28 +0000 (GMT) Received: from fe-amer-10.sun.com ([192.18.109.80]) by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mB3NUR1D025694 for ; Wed, 3 Dec 2008 23:30:27 GMT Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0KBB00B01Q38Q300@mail-amer.sun.com> (original mail from William.Walker@Sun.COM) for gnome-accessibility-devel@gnome.org; Wed, 03 Dec 2008 16:30:03 -0700 (MST) Received: from [192.168.1.10] ([24.181.237.108]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0KBB00ALHQM0O2E0@mail-amer.sun.com>; Wed, 03 Dec 2008 16:30:01 -0700 (MST) Date: Wed, 03 Dec 2008 18:30:00 -0500 From: Willie Walker In-reply-to: <4936DC40.4070801@redhat.com> Sender: William.Walker@Sun.COM To: Omair Majid Message-id: <1228347000.5838.33.camel@server> MIME-version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-type: text/plain Content-transfer-encoding: 7BIT References: <4936DC40.4070801@redhat.com> Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] [PATCH] java-access-bridge: handle selecting text and typing over it X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2008 23:30:37 -0000 Thanks! I opened a new bug for you: http://bugzilla.gnome.org/show_bug.cgi?id=563173 Will On Wed, 2008-12-03 at 14:21 -0500, Omair Majid wrote: > This is a patch for the java-access-bridge in gnome > (http://live.gnome.org/Java%20Access%20Bridge). Using a swing > JTextField, if a user selects text and starts typing to replace it, a > StringIndexOutOfBoundsException is thrown in . > > The following events are observed through acccerciser in gedit when > selecting text and typing over it: > object:text-changed:delete > object:text-changed:insert > object:text-caret-moved > > While the Swing program only emits > object:text-changed:delete > object:text-changed:insert > > The 'object:text-caret-moved' event is not sent. The attached patch > catches the exception and silently ignores it, ensuring the > selection-changed event is not sent and the text-caret-moved event is. > From Li.Yuan@Sun.COM Thu Dec 4 03:31:19 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1E6E8750090 for ; Thu, 4 Dec 2008 03:31:19 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -5.353 X-Spam-Level: X-Spam-Status: No, score=-5.353 tagged_above=-999 required=2 tests=[AWL=2.246, BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_MED=-4] X-Amavis-OS-Fingerprint: Solaris 10 (beta), (distance 19, link: ethernet/modem), [192.18.19.7] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TBwImv0m4rac for ; Thu, 4 Dec 2008 03:31:11 +0000 (GMT) Received: from sineb-mail-2.sun.com (sineb-mail-2.sun.com [192.18.19.7]) by menubar.gnome.org (Postfix) with ESMTP id 0AE1675007F for ; Thu, 4 Dec 2008 03:31:07 +0000 (GMT) Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged)) by sineb-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mB43V5Zo008566 for ; Thu, 4 Dec 2008 03:31:05 GMT Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0KBC00H011QISH00@mail-apac.sun.com> (original mail from Li.Yuan@Sun.COM) for gnome-accessibility-devel@gnome.org; Thu, 04 Dec 2008 11:31:05 +0800 (SGT) Received: from [129.158.217.133] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0KBC004K21RSYP70@mail-apac.sun.com>; Thu, 04 Dec 2008 11:31:05 +0800 (SGT) Date: Thu, 04 Dec 2008 11:30:06 +0800 From: Li Yuan In-reply-to: Sender: Li.Yuan@Sun.COM To: "Quiring, Sam" Message-id: <49374EBE.5020206@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: User-Agent: Thunderbird 2.0.0.17 (X11/20080925) Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] Slider: Text has weird chars X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 03:31:19 -0000 How did you get the text? Through text interface? If so maybe it comes from Pango... Which application you are testing? I tried Totem but didn't get the text. Thanks, Li Quiring, Sam wrote: > Greetings, > > I'm using Accessibility to examine a horizonal slider (creation code > shown below). The Accessibility *object has roleName "slider". The sub > interfaces are: Action, Component, Text, and Value. On the GUI I moved > the slider to have value 57.4. When I retrieve the text, it comes back > with 5 characters. The last 4 characters are "57.4" as expected. The > first character is a UTF8 three byte sequence whose value is 200e. What > does this mean and why is it there? The value 200e looks like a > non-printing character to me. What is its purpose? > > Here is the code that created the slider: > > static void scale_set_default_values(GtkScale *scale) > { > gtk_range_set_update_policy(GTK_RANGE(scale), > GTK_UPDATE_CONTINUOUS); > gtk_scale_set_digits(scale, 1); > gtk_scale_set_value_pos(scale, GTK_POS_TOP); > gtk_scale_set_draw_value(scale, TRUE); > } > ... > GtkObject *adjustment = gtk_adjustment_new(0.0, 0.0, 101.0, 0.1, > 1.0, 1.0); > GtkWidget *gtkHScale = gtk_hscale_new(GTK_ADJUSTMENT(adjustment)); > scale_set_default_values(GTK_SCALE(gtkHScale)); > > -Sam > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gnome-accessibility-devel mailing list > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel > From Sam.Quiring@windriver.com Thu Dec 4 15:28:38 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 96AAC750069 for ; Thu, 4 Dec 2008 15:28:38 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.599 X-Spam-Level: X-Spam-Status: No, score=-4.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6PzyQE5ZBBHU for ; Thu, 4 Dec 2008 15:28:30 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id 4404175009D for ; Thu, 4 Dec 2008 15:28:29 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mB4FSQWf026416; Thu, 4 Dec 2008 07:28:26 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 4 Dec 2008 07:28:26 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 4 Dec 2008 07:28:25 -0800 Message-ID: In-Reply-To: <49374EBE.5020206@sun.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [g-a-devel] Slider: Text has weird chars Thread-Index: AclVwMNjsmwFIJfETCu3cWTVyJEtYQAYyUyA References: <49374EBE.5020206@sun.com> From: "Quiring, Sam" To: X-OriginalArrivalTime: 04 Dec 2008 15:28:26.0511 (UTC) FILETIME=[F3C141F0:01C95624] Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] Slider: Text has weird chars X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 15:28:38 -0000 =3D=3D How did you get the text? Through text interface? I used the AccessibleText interface. Distilling out the error checking, my code looks something like this: if(Accessible_isText(aObject)) { AccessibileText *aText =3D Accessible_getText(aObject); int charCount =3D AccessibleText_getCharacterCount(aText); if(charCount =3D=3D 0) return; char *actualText =3D AccessibleText_getText(aText, 0, charCount); ... I'm testing an application that I wrote myself. I'd be happy to send it to you. -Sam -----Original Message----- From: Li.Yuan@sun.com [mailto:Li.Yuan@sun.com]=20 Sent: Wednesday, December 03, 2008 7:30 PM To: Quiring, Sam Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] Slider: Text has weird chars How did you get the text? Through text interface? If so maybe it comes from Pango... Which application you are testing? I tried Totem but didn't get the text. Thanks, Li Quiring, Sam wrote: > Greetings, > =20 > I'm using Accessibility to examine a horizonal slider (creation code=20 > shown below). The Accessibility *object has roleName "slider". The=20 > sub interfaces are: Action, Component, Text, and Value. On the GUI I=20 > moved the slider to have value 57.4. When I retrieve the text, it=20 > comes back with 5 characters. The last 4 characters are "57.4" as=20 > expected. The first character is a UTF8 three byte sequence whose=20 > value is 200e. What does this mean and why is it there? The value=20 > 200e looks like a non-printing character to me. What is its purpose? > =20 > Here is the code that created the slider: > =20 > static void scale_set_default_values(GtkScale *scale) { > gtk_range_set_update_policy(GTK_RANGE(scale), > GTK_UPDATE_CONTINUOUS); > gtk_scale_set_digits(scale, 1); > gtk_scale_set_value_pos(scale, GTK_POS_TOP); > gtk_scale_set_draw_value(scale, TRUE); } ... > GtkObject *adjustment =3D gtk_adjustment_new(0.0, 0.0, 101.0, 0.1, = > 1.0, 1.0); > GtkWidget *gtkHScale =3D = gtk_hscale_new(GTK_ADJUSTMENT(adjustment)); > scale_set_default_values(GTK_SCALE(gtkHScale)); > > -Sam > > =20 > ---------------------------------------------------------------------- > -- > > _______________________________________________ > Gnome-accessibility-devel mailing list=20 > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel > =20 From omajid@redhat.com Thu Dec 4 20:09:55 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8F5807500AF for ; Thu, 4 Dec 2008 20:09:55 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -6.599 X-Spam-Level: X-Spam-Status: No, score=-6.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 3) (NAT!) (up: 4736 hrs), (distance 15, link: GPRS, T1, FreeS/WAN), [66.187.237.31] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iuKk9FUkNOTj for ; Thu, 4 Dec 2008 20:09:50 +0000 (GMT) Received: from mx2.redhat.com (mx2.redhat.com [66.187.237.31]) by menubar.gnome.org (Postfix) with ESMTP id 097CA750076 for ; Thu, 4 Dec 2008 20:09:49 +0000 (GMT) Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id mB4K9miQ000396 for ; Thu, 4 Dec 2008 15:09:48 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mB4K9lbI029109 for ; Thu, 4 Dec 2008 15:09:47 -0500 Received: from toddler.yyz.redhat.com (toddler.yyz.redhat.com [10.15.16.34]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id mB4K9jLe020205 for ; Thu, 4 Dec 2008 15:09:46 -0500 Message-ID: <49383909.5050406@redhat.com> Date: Thu, 04 Dec 2008 15:09:45 -0500 From: Omair Majid User-Agent: Thunderbird 2.0.0.18 (X11/20081119) MIME-Version: 1.0 To: gnome-accessibility-devel@gnome.org Content-Type: multipart/mixed; boundary="------------080705070204060805070904" X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Subject: [g-a-devel] [PATCH] java-access-bridge: dont throw exceptions when entering text in AWT TextField X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 20:09:55 -0000 This is a multi-part message in MIME format. --------------080705070204060805070904 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, When using an AWT TextField to type text in, the property change emitted by the TextField is different from that of a JTextField. In the case of TextField, the newValueObject seen by JavaBridge.dispatchTextProperty is an Integer containing the new position of the caret, not the position at which text was inserted. This patch fixes newValueObject to contain the index of insertion. It also sets oldFocusText before using it. This fixes the StringIndexOutOfBoundException and emits the proper index for the object:text-changed:insert event. Cheers, Omair --------------080705070204060805070904 Content-Type: text/x-patch; name="awtTextComponent.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="awtTextComponent.patch" Index: bridge/org/GNOME/Accessibility/JavaBridge.java =================================================================== --- bridge/org/GNOME/Accessibility/JavaBridge.java (revision 232) +++ bridge/org/GNOME/Accessibility/JavaBridge.java (working copy) @@ -745,11 +745,16 @@ oldFocusText = aeText.getTextRange (0, charCount); } else if ((ac != null) && (ac == oldFocusSource)) { + // accessibleAWTTextComponent + // the event fired by the text component is different from what we expect + // newValueObject is not the position of the insertion, + // but the position of the caret after the instertion, so fix newValueObject + newValueObject = new Integer(((Integer)newValueObject).intValue() - oldValue); + oldFocusText = getTextRange (aText, 0, charCount); any.insert_string (oldFocusText.substring ( ((Integer)newValueObject).intValue(), ((Integer)newValueObject).intValue() + oldValue)); - oldFocusText = getTextRange (aText, 0, charCount); } } else if ( charCount < prevCharCount ) { --------------080705070204060805070904-- From Jeff.Cai@Sun.COM Fri Dec 5 00:26:37 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C8746750076 for ; Fri, 5 Dec 2008 00:26:37 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -7.599 X-Spam-Level: X-Spam-Status: No, score=-7.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_MED=-4] X-Amavis-OS-Fingerprint: Solaris 10 (beta), (distance 19, link: ethernet/modem), [192.18.19.6] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w9XMryl1a+j4 for ; Fri, 5 Dec 2008 00:26:30 +0000 (GMT) Received: from sineb-mail-1.sun.com (sineb-mail-1.sun.com [192.18.19.6]) by menubar.gnome.org (Postfix) with ESMTP id 94C3B750069 for ; Fri, 5 Dec 2008 00:26:25 +0000 (GMT) Received: from fe-apac-06.sun.com (fe-apac-06.sun.com [192.18.19.177] (may be forged)) by sineb-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mB50QM94019244 for ; Fri, 5 Dec 2008 00:26:23 GMT Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0KBD00401NP3OB00@mail-apac.sun.com> (original mail from Jeff.Cai@Sun.COM) for gnome-accessibility-devel@gnome.org; Fri, 05 Dec 2008 08:26:22 +0800 (SGT) Received: from [192.168.1.100] ([123.121.205.238]) by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0KBD00C2UNVXWDIJ@mail-apac.sun.com>; Fri, 05 Dec 2008 08:26:22 +0800 (SGT) Date: Fri, 05 Dec 2008 08:26:20 +0800 From: Jeff Cai In-reply-to: <49383909.5050406@redhat.com> Sender: Jeff.Cai@Sun.COM To: Omair Majid Message-id: <4938752C.6040004@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <49383909.5050406@redhat.com> User-Agent: Thunderbird 2.0.0.17 (X11/20081023) Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] [PATCH] java-access-bridge: dont throw exceptions when entering text in AWT TextField X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Dec 2008 00:26:38 -0000 Omair, In order to trace the bug better, could you file a bug in bugzilla.gnome.org and paste your patch there? To file a bug, you should have a bugzilla account. If you don't have yet, please create a one. Then you can file a bug at at-spi (product), javabridge (component). Jeff Omair Majid wrote: > Hi, > > When using an AWT TextField to type text in, the property change > emitted by the TextField is different from that of a JTextField. In > the case of TextField, the newValueObject seen by > JavaBridge.dispatchTextProperty is an Integer containing the new > position of the caret, not the position at which text was inserted. > This patch fixes newValueObject to contain the index of insertion. It > also sets oldFocusText before using it. This fixes the > StringIndexOutOfBoundException and emits the proper index for the > object:text-changed:insert event. > > Cheers, > > Omair > ------------------------------------------------------------------------ > > _______________________________________________ > Gnome-accessibility-devel mailing list > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel From mgorse@mgorse.dhs.org Mon Dec 8 22:44:51 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 49536750087 for ; Mon, 8 Dec 2008 22:44:51 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.085 X-Spam-Level: X-Spam-Status: No, score=-0.085 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, RDNS_DYNAMIC=0.1] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 3) (up: 5098 hrs), (distance 18, link: ethernet/modem), [24.153.142.67] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JBTrOAhf2Me0 for ; Mon, 8 Dec 2008 22:44:46 +0000 (GMT) Received: from bertha.hocaustin.com (rrcs-24-153-142-67.sw.biz.rr.com [24.153.142.67]) by menubar.gnome.org (Postfix) with ESMTP id 3F49D75009F for ; Mon, 8 Dec 2008 22:44:45 +0000 (GMT) Received: from [192.168.1.185] (unknown [192.168.1.185]) by bertha.hocaustin.com (Postfix) with ESMTPS id A465C4BDE9 for ; Mon, 8 Dec 2008 16:53:45 -0600 (CST) Date: Mon, 8 Dec 2008 16:44:13 -0600 (CST) From: Mike Gorse X-X-Sender: mgorse@boston.site To: gnome-accessibility-devel@gnome.org Message-ID: User-Agent: Alpine 1.10 (LNX 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: [g-a-devel] exposing characteristics of dates in a calendar X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2008 22:44:51 -0000 Hi all, We're trying to a11y-enable the SWF MonthCalendar control in Mono. It represents "today" by placing a big red circle around the number, and we're trying to figure out how to expose that in atk. I was thinking of adding an attribute, to be returned either by getAttributes or getRunAttributes, for the object representing today, although I don't know if there is a standard attribute that we could use for it. I can't think of a better way to handle it, though. A date can also be bold, so we'll need to add a text attribute to handle that case. Does anyone have any input? Thanks, -Mike G- From mgorse@mgorse.dhs.org Mon Dec 8 23:00:24 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D12607500F5 for ; Mon, 8 Dec 2008 23:00:24 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.499 X-Spam-Level: X-Spam-Status: No, score=-2.499 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, RDNS_DYNAMIC=0.1] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 3) (up: 5099 hrs), (distance 18, link: ethernet/modem), [24.153.142.67] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T4V12Qd0L-8S for ; Mon, 8 Dec 2008 23:00:19 +0000 (GMT) Received: from bertha.hocaustin.com (rrcs-24-153-142-67.sw.biz.rr.com [24.153.142.67]) by menubar.gnome.org (Postfix) with ESMTP id 1F8127500BE for ; Mon, 8 Dec 2008 23:00:18 +0000 (GMT) Received: from [192.168.1.185] (unknown [192.168.1.185]) by bertha.hocaustin.com (Postfix) with ESMTPS id 229A84BDE9 for ; Mon, 8 Dec 2008 17:09:20 -0600 (CST) Date: Mon, 8 Dec 2008 16:59:48 -0600 (CST) From: Mike Gorse X-X-Sender: mgorse@boston.site To: gnome-accessibility-devel@gnome.org In-Reply-To: Message-ID: References: User-Agent: Alpine 1.10 (LNX 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: Re: [g-a-devel] exposing characteristics of dates in a calendar X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2008 23:00:25 -0000 Brad just reminded me that atk objects have a "description", so that could be a good way to expose a date being today, although, from a brief look at the code, it seems that Orca currently only reads an object's description in certain cases. On Mon, 8 Dec 2008, Mike Gorse wrote: > Hi all, > > We're trying to a11y-enable the SWF MonthCalendar control in Mono. It > represents "today" by placing a big red circle around the number, and we're > trying to figure out how to expose that in atk. I was thinking of adding an > attribute, to be returned either by getAttributes or getRunAttributes, for > the object representing today, although I don't know if there is a standard > attribute that we could use for it. I can't think of a better way to handle > it, though. A date can also be bold, so we'll need to add a text attribute > to handle that case. > > Does anyone have any input? > > Thanks, > -Mike G- > From marco.zehe@googlemail.com Mon Dec 8 23:04:44 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F205F750087 for ; Mon, 8 Dec 2008 23:04:43 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 3) (NAT!) (up: 2908 hrs), (distance 10, link: GPRS, T1, FreeS/WAN), [63.245.208.176] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Nn4bzaMvIjKD for ; Mon, 8 Dec 2008 23:04:36 +0000 (GMT) Received: from dm-mail02.mozilla.org (dm-mail02.mozilla.org [63.245.208.176]) by menubar.gnome.org (Postfix) with ESMTP id 20D4675009F for ; Mon, 8 Dec 2008 23:04:35 +0000 (GMT) Received: from [10.250.3.153] (guest-225.mountainview.mozilla.com [63.245.220.225]) (Authenticated sender: mzehe@mozilla.com) by dm-mail02.mozilla.org (Postfix) with ESMTP id E0A8F8240CC for ; Mon, 8 Dec 2008 15:04:33 -0800 (PST) Message-ID: <493DA7FC.2050602@googlemail.com> Date: Mon, 08 Dec 2008 15:04:28 -0800 From: Marco Zehe User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1b3pre) Gecko/20081208 Lightning/1.0pre Shredder/3.0b2pre MIME-Version: 1.0 To: gnome-accessibility-devel@gnome.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [g-a-devel] exposing characteristics of dates in a calendar X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2008 23:04:44 -0000 Hi Mike, I'd be very interested in harmonizing that. The Mozilla Messaging team currently is working on integrating the Lightning calendar extension into Thunderbird 3, and it would be good if the exposure is similar so screen readers such as Orca would only need to implement one sort of processing for this type of control. Marco On 08.12.2008 14:59, Mike Gorse wrote: > Brad just reminded me that atk objects have a "description", so that > could be a good way to expose a date being today, although, from a > brief look at the code, it seems that Orca currently only reads an > object's description in certain cases. > > On Mon, 8 Dec 2008, Mike Gorse wrote: > >> Hi all, >> >> We're trying to a11y-enable the SWF MonthCalendar control in Mono. >> It represents "today" by placing a big red circle around the number, >> and we're trying to figure out how to expose that in atk. I was >> thinking of adding an attribute, to be returned either by >> getAttributes or getRunAttributes, for the object representing today, >> although I don't know if there is a standard attribute that we could >> use for it. I can't think of a better way to handle it, though. A >> date can also be bold, so we'll need to add a text attribute to >> handle that case. >> >> Does anyone have any input? >> >> Thanks, >> -Mike G- >> > _______________________________________________ > Gnome-accessibility-devel mailing list > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel From Peter.Korn@Sun.COM Mon Dec 8 23:05:43 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 518D67500A8 for ; Mon, 8 Dec 2008 23:05:43 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -7.599 X-Spam-Level: X-Spam-Status: No, score=-7.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_MED=-4] X-Amavis-OS-Fingerprint: Solaris 10 (beta), (distance 10, link: ethernet/modem), [192.18.43.133] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XEJEPWDhHWMA for ; Mon, 8 Dec 2008 23:05:35 +0000 (GMT) Received: from sca-es-mail-2.sun.com (sca-es-mail-2.Sun.COM [192.18.43.133]) by menubar.gnome.org (Postfix) with ESMTP id 565B875009F for ; Mon, 8 Dec 2008 23:05:34 +0000 (GMT) Received: from fe-sfbay-10.sun.com ([192.18.43.129]) by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id mB8N5Ox4025672 for ; Mon, 8 Dec 2008 15:05:33 -0800 (PST) Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0KBK00201YFHGZ00@fe-sfbay-10.sun.com> (original mail from Peter.Korn@Sun.COM) for gnome-accessibility-devel@gnome.org; Mon, 08 Dec 2008 15:05:24 -0800 (PST) Received: from [10.115.14.37] ([88.128.82.204]) by fe-sfbay-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0KBK00APHYSZS2D0@fe-sfbay-10.sun.com>; Mon, 08 Dec 2008 15:05:24 -0800 (PST) Date: Mon, 08 Dec 2008 15:04:55 -0800 From: Peter Korn In-reply-to: Sender: Peter.Korn@Sun.COM To: Mike Gorse Message-id: <493DA817.8060402@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] exposing characteristics of dates in a calendar X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Dec 2008 23:05:43 -0000 Mike, Description is designed for human-reading, not for something like a state/status indication. We have things like Focused, Selected, etc. in AccessibleState. You can imagine a screen reader script wanting to pick out this info - it would have to parse descriptions for that - the kind of ugliness that was stuffed into MSAA because there weren't other richer ways of conveying needed info. Regards, Peter Korn Accessibility Architect & Principal Engineer, Sun Microsystems, Inc. > Brad just reminded me that atk objects have a "description", so that > could be a good way to expose a date being today, although, from a > brief look at the code, it seems that Orca currently only reads an > object's description in certain cases. > > On Mon, 8 Dec 2008, Mike Gorse wrote: > >> Hi all, >> >> We're trying to a11y-enable the SWF MonthCalendar control in Mono. >> It represents "today" by placing a big red circle around the number, >> and we're trying to figure out how to expose that in atk. I was >> thinking of adding an attribute, to be returned either by >> getAttributes or getRunAttributes, for the object representing today, >> although I don't know if there is a standard attribute that we could >> use for it. I can't think of a better way to handle it, though. A >> date can also be bold, so we'll need to add a text attribute to >> handle that case. >> >> Does anyone have any input? >> >> Thanks, >> -Mike G- >> > _______________________________________________ > Gnome-accessibility-devel mailing list > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel From steve@fullmeasure.co.uk Tue Dec 9 07:50:54 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2E5377500E7 for ; Tue, 9 Dec 2008 07:50:54 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 2) (firewall!) (up: 5874 hrs), (distance 16, link: (Google 2)), [66.249.90.176] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wYISyg1QZuu4 for ; Tue, 9 Dec 2008 07:50:46 +0000 (GMT) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.176]) by menubar.gnome.org (Postfix) with ESMTP id 4420A75000A for ; Tue, 9 Dec 2008 07:50:45 +0000 (GMT) Received: by ik-out-1112.google.com with SMTP id c30so1447833ika.7 for ; Mon, 08 Dec 2008 23:50:43 -0800 (PST) Received: by 10.103.251.3 with SMTP id d3mr1585297mus.72.1228809043219; Mon, 08 Dec 2008 23:50:43 -0800 (PST) Received: by 10.103.39.20 with HTTP; Mon, 8 Dec 2008 23:50:43 -0800 (PST) Message-ID: Date: Tue, 9 Dec 2008 07:50:43 +0000 From: "Steve Lee" To: "Peter Korn" In-Reply-To: <493DA817.8060402@sun.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <493DA817.8060402@sun.com> Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] exposing characteristics of dates in a calendar X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Dec 2008 07:50:54 -0000 Isn't Description potentially internationalised as well, so adding problems? -- Steve Lee Open Source Assistive Technology Software and Accessibility fullmeasure.co.uk 2008/12/8 Peter Korn : > Mike, > > Description is designed for human-reading, not for something like a > state/status indication. We have things like Focused, Selected, etc. in > AccessibleState. You can imagine a screen reader script wanting to pick out > this info - it would have to parse descriptions for that - the kind of > ugliness that was stuffed into MSAA because there weren't other richer ways > of conveying needed info. > > Regards, > > Peter Korn > Accessibility Architect & Principal Engineer, > Sun Microsystems, Inc. > >> Brad just reminded me that atk objects have a "description", so that could >> be a good way to expose a date being today, although, from a brief look at >> the code, it seems that Orca currently only reads an object's description in >> certain cases. >> >> On Mon, 8 Dec 2008, Mike Gorse wrote: >> >>> Hi all, >>> >>> We're trying to a11y-enable the SWF MonthCalendar control in Mono. It >>> represents "today" by placing a big red circle around the number, and we're >>> trying to figure out how to expose that in atk. I was thinking of adding an >>> attribute, to be returned either by getAttributes or getRunAttributes, for >>> the object representing today, although I don't know if there is a standard >>> attribute that we could use for it. I can't think of a better way to handle >>> it, though. A date can also be bold, so we'll need to add a text attribute >>> to handle that case. >>> >>> Does anyone have any input? >>> >>> Thanks, >>> -Mike G- >>> >> _______________________________________________ >> Gnome-accessibility-devel mailing list >> Gnome-accessibility-devel@gnome.org >> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel > > _______________________________________________ > Gnome-accessibility-devel mailing list > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel > From Li.Yuan@Sun.COM Wed Dec 10 04:15:58 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AFE51750100 for ; Wed, 10 Dec 2008 04:15:58 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -5.366 X-Spam-Level: X-Spam-Status: No, score=-5.366 tagged_above=-999 required=2 tests=[AWL=2.233, BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_MED=-4] X-Amavis-OS-Fingerprint: Solaris 10 (beta), (distance 19, link: ethernet/modem), [192.18.19.6] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1Rasdkx-aszr for ; Wed, 10 Dec 2008 04:15:49 +0000 (GMT) Received: from sineb-mail-1.sun.com (sineb-mail-1.sun.com [192.18.19.6]) by menubar.gnome.org (Postfix) with ESMTP id B3A7F7500F6 for ; Wed, 10 Dec 2008 04:15:44 +0000 (GMT) Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged)) by sineb-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mBA4FYHU011791 for ; Wed, 10 Dec 2008 04:15:39 GMT Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0KBN005017OH4W00@mail-apac.sun.com> (original mail from Li.Yuan@Sun.COM) for gnome-accessibility-devel@gnome.org; Wed, 10 Dec 2008 12:15:34 +0800 (SGT) Received: from [129.158.217.167] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0KBN004M47TXYPIW@mail-apac.sun.com>; Wed, 10 Dec 2008 12:15:34 +0800 (SGT) Date: Wed, 10 Dec 2008 12:14:58 +0800 From: Li Yuan In-reply-to: <493DA817.8060402@sun.com> Sender: Li.Yuan@Sun.COM To: Peter Korn Message-id: <493F4242.6020304@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <493DA817.8060402@sun.com> User-Agent: Thunderbird 2.0.0.18 (X11/20081125) Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] exposing characteristics of dates in a calendar X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2008 04:15:59 -0000 Yes, I think getAttributes should be a proper candidate. Li Peter Korn wrote: > Mike, > > Description is designed for human-reading, not for something like a > state/status indication. We have things like Focused, Selected, etc. > in AccessibleState. You can imagine a screen reader script wanting to > pick out this info - it would have to parse descriptions for that - > the kind of ugliness that was stuffed into MSAA because there weren't > other richer ways of conveying needed info. > > Regards, > > Peter Korn > Accessibility Architect & Principal Engineer, > Sun Microsystems, Inc. > >> Brad just reminded me that atk objects have a "description", so that >> could be a good way to expose a date being today, although, from a >> brief look at the code, it seems that Orca currently only reads an >> object's description in certain cases. >> >> On Mon, 8 Dec 2008, Mike Gorse wrote: >> >>> Hi all, >>> >>> We're trying to a11y-enable the SWF MonthCalendar control in Mono. >>> It represents "today" by placing a big red circle around the number, >>> and we're trying to figure out how to expose that in atk. I was >>> thinking of adding an attribute, to be returned either by >>> getAttributes or getRunAttributes, for the object representing >>> today, although I don't know if there is a standard attribute that >>> we could use for it. I can't think of a better way to handle it, >>> though. A date can also be bold, so we'll need to add a text >>> attribute to handle that case. >>> >>> Does anyone have any input? >>> >>> Thanks, >>> -Mike G- >>> >> _______________________________________________ >> Gnome-accessibility-devel mailing list >> Gnome-accessibility-devel@gnome.org >> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel > > _______________________________________________ > Gnome-accessibility-devel mailing list > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel From Sam.Quiring@windriver.com Fri Dec 12 18:15:35 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2B81C75010A for ; Fri, 12 Dec 2008 18:15:35 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.998 X-Spam-Level: X-Spam-Status: No, score=-1.998 tagged_above=-999 required=2 tests=[BAYES_50=0.001, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pTrFl6ByrrK2 for ; Fri, 12 Dec 2008 18:15:27 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id A49C0750101 for ; Fri, 12 Dec 2008 18:15:27 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mBCIFL5D015084 for ; Fri, 12 Dec 2008 10:15:21 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 12 Dec 2008 10:15:21 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C95C85.982D899C" Date: Fri, 12 Dec 2008 10:15:20 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: registering/deregistering event listeners Thread-Index: AclchZfX2VbV/aJ/S0ClM+6Jok8p5A== From: "Quiring, Sam" To: X-OriginalArrivalTime: 12 Dec 2008 18:15:21.0436 (UTC) FILETIME=[986B89C0:01C95C85] Subject: [g-a-devel] registering/deregistering event listeners X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2008 18:15:35 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C95C85.982D899C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Greetings, =20 In my app that interfaces to at-spi I have a function that requires that I listen for a bunch of different event types. During normal operation of the app I do not need to listen for these events. The implementation of this function looks like this: =20 1. register the event handlers 2. wait for the user to do his thing 3. deregister the event handlers =20 After a few executions of this function (3..6), it dies during step 1: registering the event handlers. In fact the entire GNOME desktop locks up and I'm forced to power cycle the machine to get control back. (Is there an easier/cleaner way to restart GNOME?). =20 During app initialization I create the event listeners using SPI_createAccessibleEventListener() and SPI_createAccessibleDeviceListener(). My app assumes that once these listeners are created it can register and deregister them as event listeners as many times as it wants. Is that correct? =20 The code implements deregistering the non-device event listeners using SPI_derefisterGlobalEventListenerAll() -- I don't know if that matters. =20 Any help would be appreciated. =20 -Sam ------_=_NextPart_001_01C95C85.982D899C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Greetings,
 
In my = app that=20 interfaces to at-spi I have a function that requires that I listen for a = bunch=20 of different event types.  During normal operation of the app I do = not need=20 to listen for these events.  The implementation of this function = looks like=20 this:
 
   =20 1. register the event handlers
   =20 2. wait for the user to do his thing
   =20 3. deregister the event handlers
 
After = a few=20 executions of this function (3..6), it dies during step 1: registering = the event=20 handlers.  In fact the entire GNOME desktop locks up and I'm = forced to=20 power cycle the machine to get control back.  (Is there an = easier/cleaner=20 way to restart GNOME?).
 
During = app=20 initialization I create the event listeners using=20 SPI_createAccessibleEventListener() and=20 SPI_createAccessibleDeviceListener().  My app assumes that once = these=20 listeners are created it can register and deregister them as event = listeners as=20 many times as it wants.  Is that correct?
 
The = code implements=20 deregistering the non-device event listeners using=20 SPI_derefisterGlobalEventListenerAll() -- I don't know if that=20 matters.
 
Any = help would be=20 appreciated.
 
-Sam
------_=_NextPart_001_01C95C85.982D899C-- From steve@fullmeasure.co.uk Fri Dec 12 18:48:22 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C702C7500F0 for ; Fri, 12 Dec 2008 18:48:22 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 2) (firewall!) (up: 921 hrs), (distance 13, link: (Google 2)), [209.85.198.239] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bdpl-EJkNzbf for ; Fri, 12 Dec 2008 18:48:17 +0000 (GMT) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.239]) by menubar.gnome.org (Postfix) with ESMTP id 4781A75007F for ; Fri, 12 Dec 2008 18:48:16 +0000 (GMT) Received: by rv-out-0506.google.com with SMTP id f6so1575989rvb.3 for ; Fri, 12 Dec 2008 10:48:14 -0800 (PST) Received: by 10.141.71.14 with SMTP id y14mr2062320rvk.131.1229107694622; Fri, 12 Dec 2008 10:48:14 -0800 (PST) Received: by 10.140.142.6 with HTTP; Fri, 12 Dec 2008 10:48:14 -0800 (PST) Message-ID: Date: Fri, 12 Dec 2008 18:48:14 +0000 From: "Steve Lee" To: "Quiring, Sam" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] registering/deregistering event listeners X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2008 18:48:23 -0000 2008/12/12 Quiring, Sam : > 1. register the event handlers > 2. wait for the user to do his thing > 3. deregister the event handlers > > After a few executions of this function (3..6), it dies during step 1: > registering the event handlers. In fact the entire GNOME desktop locks up > and I'm forced to power cycle the machine to get control back. (Is there an > easier/cleaner way to restart GNOME?). Are you deregistering in the event handler? I found that it best to do absolute minimum in the handers and call very few functions. In the end I just put events in my own queue and dequeue in idle processing - in other words make processing asynch. I don't know what the official position is. Steve Lee From Sam.Quiring@windriver.com Fri Dec 12 20:35:40 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2675F750063 for ; Fri, 12 Dec 2008 20:35:40 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.598 X-Spam-Level: X-Spam-Status: No, score=-4.598 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BoKyKO6lasQ7 for ; Fri, 12 Dec 2008 20:35:32 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id 25E407500DE for ; Fri, 12 Dec 2008 20:35:31 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mBCKZRed012883 for ; Fri, 12 Dec 2008 12:35:28 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 12 Dec 2008 12:35:28 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C95C99.2ACEE9B0" Date: Fri, 12 Dec 2008 12:35:20 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: AccessibleDeviceEventMask and SPI_registerDeviceEventListener() Thread-Index: AclcmSbdxqRhVahXQyyziV1JnnLV7A== From: "Quiring, Sam" To: X-OriginalArrivalTime: 12 Dec 2008 20:35:28.0117 (UTC) FILETIME=[2B314250:01C95C99] Subject: [g-a-devel] AccessibleDeviceEventMask and SPI_registerDeviceEventListener() X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2008 20:35:40 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C95C99.2ACEE9B0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Greetings, =20 I have this call in my app: =20 #define BUTTON_EVENTS (SPI_BUTTON_PRESSED | SPI_BUTTON_RELEASED) SPI_registerDeviceEventListener(mouse_device_listener, BUTTON_EVENTS, 0); My read of the documentation, http://library.gnome.org/devel/at-spi-cspi/stable/at-spi-cspi-Registry-q ueries.html#SPI-registerDeviceEventListener, is that my listener should receive all button_press and button_release events. Most runs of my application never receive any button_release events. Sometimes the app receives 1 button_release. I have no log at this time that shows more than 1 button_release. =20 On the other hand, I believe I am receiving the correct amount of button_pressed events. =20 Are there any known bugs in this area? =20 -Sam =20 =20 ------_=_NextPart_001_01C95C99.2ACEE9B0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Greetings,
 
I have = this call in=20 my app:
 
    #define BUTTON_EVENTS=20 (SPI_BUTTON_PRESSED | SPI_BUTTON_RELEASED)
   =20 SPI_registerDeviceEventListener(mouse_device_listener, BUTTON_EVENTS,=20 0);
My read of the documentation, http://library.gnome.= org/devel/at-spi-cspi/stable/at-spi-cspi-Registry-queries.html#SPI-regist= erDeviceEventListener,=20 is that my listener should receive all button_press and button_release=20 events.  Most runs of my application never receive any = button_release=20 events.  Sometimes the app receives 1 button_release.  I have = no log=20 at this time that shows more than 1 = button_release.
 
On the = other hand, I=20 believe I am receiving the correct amount of button_pressed=20 events.
 
Are = there any known=20 bugs in this area?
 
-Sam
 
 
------_=_NextPart_001_01C95C99.2ACEE9B0-- From nagappan@gmail.com Fri Dec 12 21:04:39 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5AA11750063 for ; Fri, 12 Dec 2008 21:04:39 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.598 X-Spam-Level: X-Spam-Status: No, score=-2.598 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 2) (up: 102 hrs), (distance 13, link: ethernet/modem), [209.85.217.19] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8t4WG+CjawWh for ; Fri, 12 Dec 2008 21:04:30 +0000 (GMT) Received: from mail-gx0-f19.google.com (mail-gx0-f19.google.com [209.85.217.19]) by menubar.gnome.org (Postfix) with ESMTP id 0F8C4750096 for ; Fri, 12 Dec 2008 21:04:29 +0000 (GMT) Received: by gxk12 with SMTP id 12so2853998gxk.15 for ; Fri, 12 Dec 2008 13:04:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=UsGPtNYAmrAUDiX0keLxUO6g/TDUbcTN6hHoNTt8CPo=; b=Hex1esyOy4N5VlJCdVR6g1oiXhkN7j0ulSRzoeAquTOBLeXC1K4gT5O6Bpe+70yFi2 aQww2R7pXrYR3biJvMNvxcA05/k8HV42Qx6hfhyV++WxCVxBWLxIn9KdcjFMmHeFLiXK luYoGimF/u1YDyfpWM3Nd8TE2lFW5NLaiYqMg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=gm0dEieuYSH3FnMxeMR+b09INDuoNyWxDo8O85IWHqXj5Uskitl78//YTQK3uftWxh H58pLvsblioKdPGR09EfaOwTfgVOl9+Lyf6nNv1WooBPNeY3iY13ZX+9HM6IwVNijpNB bm5imYQ6wBhnNZ5sRIUVIQjEvcHKnvSqfAnKg= Received: by 10.151.108.13 with SMTP id k13mr1662711ybm.36.1229115867753; Fri, 12 Dec 2008 13:04:27 -0800 (PST) Received: by 10.151.129.12 with HTTP; Fri, 12 Dec 2008 13:04:27 -0800 (PST) Message-ID: <9d0602eb0812121304o17fae9f6r8dbc0934aa361e45@mail.gmail.com> Date: Fri, 12 Dec 2008 13:04:27 -0800 From: "Nagappan A" To: "Quiring, Sam" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10050_29312494.1229115867726" References: Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] AccessibleDeviceEventMask and SPI_registerDeviceEventListener() X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2008 21:04:39 -0000 ------=_Part_10050_29312494.1229115867726 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Sam, 2008/12/12 Quiring, Sam > Greetings, > > I have this call in my app: > > #define BUTTON_EVENTS (SPI_BUTTON_PRESSED | SPI_BUTTON_RELEASED) > SPI_registerDeviceEventListener(mouse_device_listener, BUTTON_EVENTS, > 0); > My read of the documentation, > http://library.gnome.org/devel/at-spi-cspi/stable/at-spi-cspi-Registry-queries.html#SPI-registerDeviceEventListener, > is that my listener should receive all button_press and button_release > events. Most runs of my application never receive any button_release > events. Sometimes the app receives 1 button_release. I have no log at this > time that shows more than 1 button_release. > > On the other hand, I believe I am receiving the correct amount of > button_pressed events. > The events generated in CSPI is not reliable as compared to the pyatspi. If possible, I recommend to use pyatspi. Also another advantage will be, when we move to DBus from CORBA, as of now we don't have CSPI for DBus based implementation. Thanks Nagappan > > Are there any known bugs in this area? > > -Sam > > > > _______________________________________________ > Gnome-accessibility-devel mailing list > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel > > -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com ------=_Part_10050_29312494.1229115867726 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Sam,

2008/12/12 Quiring, Sam <Sam.Quiring@windriver.com>
Greetings,
 
I have this call in my app:
 
    #define BUTTON_EVENTS (SPI_BUTTON_PRESSED | SPI_BUTTON_RELEASED)
    SPI_registerDeviceEventListener(mouse_device_listener, BUTTON_EVENTS, 0);
My read of the documentation, http://library.gnome.org/devel/at-spi-cspi/stable/at-spi-cspi-Registry-queries.html#SPI-registerDeviceEventListener, is that my listener should receive all button_press and button_release events.  Most runs of my application never receive any button_release events.  Sometimes the app receives 1 button_release.  I have no log at this time that shows more than 1 button_release.
 
On the other hand, I believe I am receiving the correct amount of button_pressed events.

The events generated in CSPI is not reliable as compared to the pyatspi. If possible, I recommend to use pyatspi. Also another advantage will be, when we move to DBus from CORBA, as of now we don't have CSPI for DBus based implementation.

Thanks
Nagappan
 
Are there any known bugs in this area?
 
-Sam
 
 

_______________________________________________
Gnome-accessibility-devel mailing list
Gnome-accessibility-devel@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel




--
Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
------=_Part_10050_29312494.1229115867726-- From Sam.Quiring@windriver.com Fri Dec 12 22:34:03 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 658CB750063 for ; Fri, 12 Dec 2008 22:34:03 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.598 X-Spam-Level: X-Spam-Status: No, score=-4.598 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Gs4By4dX6Bt for ; Fri, 12 Dec 2008 22:33:53 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id 8AFB5750031 for ; Fri, 12 Dec 2008 22:33:52 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mBCMXiM3003932; Fri, 12 Dec 2008 14:33:45 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 12 Dec 2008 14:33:45 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C95CA9.B0D32000" Date: Fri, 12 Dec 2008 14:33:44 -0800 Message-ID: In-Reply-To: <9d0602eb0812121304o17fae9f6r8dbc0934aa361e45@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [g-a-devel] AccessibleDeviceEventMask and SPI_registerDeviceEventListener() Thread-Index: AclcnTyqBK7QDnkDQDeO/SmZWutNqAABqsdw References: <9d0602eb0812121304o17fae9f6r8dbc0934aa361e45@mail.gmail.com> From: "Quiring, Sam" To: "Nagappan A" X-OriginalArrivalTime: 12 Dec 2008 22:33:45.0227 (UTC) FILETIME=[B1664DB0:01C95CA9] Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] AccessibleDeviceEventMask and SPI_registerDeviceEventListener() X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2008 22:34:03 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C95CA9.B0D32000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Nagappan, =20 Really? So the Python at-spi interface is better maintained than the C interface? After reading your email I did some googling (I've been ignoring all things python since I'm working in C). I see that there is quite a bit of at-spi activity in Python, for example it looks like LDTP has abandoned C and is exclusively being worked on in Python now, is that true?. Thanks a lot for the heads up. =20 Is reliability a problem for other parts of the at-spi C interface? Or is it mainly just an issue with events? =20 -Sam =20 ________________________________ From: Nagappan A [mailto:nagappan@gmail.com]=20 Sent: Friday, December 12, 2008 1:04 PM To: Quiring, Sam Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] AccessibleDeviceEventMask and SPI_registerDeviceEventListener() Hi Sam, 2008/12/12 Quiring, Sam Greetings, =20 I have this call in my app: =20 #define BUTTON_EVENTS (SPI_BUTTON_PRESSED | SPI_BUTTON_RELEASED) =09 SPI_registerDeviceEventListener(mouse_device_listener, BUTTON_EVENTS, 0); =09 My read of the documentation, http://library.gnome.org/devel/at-spi-cspi/stable/at-spi-cspi-Registry-q ueries.html#SPI-registerDeviceEventListener, is that my listener should receive all button_press and button_release events. Most runs of my application never receive any button_release events. Sometimes the app receives 1 button_release. I have no log at this time that shows more than 1 button_release. =20 On the other hand, I believe I am receiving the correct amount of button_pressed events. The events generated in CSPI is not reliable as compared to the pyatspi. If possible, I recommend to use pyatspi. Also another advantage will be, when we move to DBus from CORBA, as of now we don't have CSPI for DBus based implementation. Thanks Nagappan =09 =20 Are there any known bugs in this area? =20 -Sam =20 =20 _______________________________________________ Gnome-accessibility-devel mailing list Gnome-accessibility-devel@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel =09 =09 --=20 Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com ------_=_NextPart_001_01C95CA9.B0D32000 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi Nagappan,
 
Really?  So the Python at-spi = interface=20 is better maintained than the C interface?  After reading your = email I did=20 some googling (I've been ignoring all things python since I'm working in = C).  I see that there is quite a bit of at-spi activity in Python, = for=20 example it looks like LDTP has abandoned C and is exclusively being = worked on in=20 Python now, is that true?.  Thanks a lot for the heads=20 up.
 
Is reliability a problem for other parts of = the at-spi=20 C interface?  Or is it mainly just an issue with=20 events?
 
-Sam
 


From: Nagappan A = [mailto:nagappan@gmail.com]=20
Sent: Friday, December 12, 2008 1:04 PM
To: = Quiring,=20 Sam
Cc: gnome-accessibility-devel@gnome.org
Subject: = Re:=20 [g-a-devel] AccessibleDeviceEventMask and=20 SPI_registerDeviceEventListener()

Hi Sam,

2008/12/12 Quiring, Sam <Sam.Quiring@windriver.com&g= t;
Greetings,
 
I have this call in my=20 app:
 
    = #define=20 BUTTON_EVENTS (SPI_BUTTON_PRESSED |=20 SPI_BUTTON_RELEASED)
   =20 SPI_registerDeviceEventListener(mouse_device_listener, BUTTON_EVENTS,=20 0);
My = read of the=20 documentation, http://library.gnome.org/devel/at-spi-cspi/stable/at-spi-= cspi-Registry-queries.html#SPI-registerDeviceEventListener,=20 is that my listener should receive all button_press and button_release = events.  Most runs of my application never receive any = button_release=20 events.  Sometimes the app receives 1 button_release.  I = have no log=20 at this time that shows more than 1 = button_release.
 
On the other hand, I believe I = am receiving=20 the correct amount of button_pressed=20 events.

The events generated in CSPI is not reliable as compared to the = pyatspi. If possible, I recommend to use pyatspi. Also another advantage = will=20 be, when we move to DBus from CORBA, as of now we don't have CSPI for = DBus based=20 implementation.

Thanks
Nagappan
 
Are there any known bugs in = this=20 area?
 
-Sam
 
 

_________________= ______________________________
Gnome-accessibility-devel=20 mailing list
Gnome-accessibility-d= evel@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-accessibilit= y-devel



--
Linux Desktop (GUI Application) Testing Project - = http://ldtp.freedesktop.org
<= A=20 href=3D"http://nagappanal.blogspot.com">http://nagappanal.blogspot.com
------_=_NextPart_001_01C95CA9.B0D32000-- From nagappan@gmail.com Fri Dec 12 22:37:35 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 61FA2750031 for ; Fri, 12 Dec 2008 22:37:35 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.46 X-Spam-Level: X-Spam-Status: No, score=-2.46 tagged_above=-999 required=2 tests=[AWL=0.138, BAYES_00=-2.599, HTML_MESSAGE=0.001] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 2) (firewall!) (up: 3567 hrs), (distance 16, link: (Google 2)), [64.233.170.185] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zOz1o4quDX9Q for ; Fri, 12 Dec 2008 22:37:26 +0000 (GMT) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.185]) by menubar.gnome.org (Postfix) with ESMTP id 8FA5D750063 for ; Fri, 12 Dec 2008 22:37:25 +0000 (GMT) Received: by rn-out-0910.google.com with SMTP id k45so1504262rnd.10 for ; Fri, 12 Dec 2008 14:37:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=rVX+fusdrsyKprHVZQakbJ+Vkr1sHZT+yu5K7aIgUQY=; b=iKmgmZjGC9epEwalxSk0Vw9Y9oGfrvYk390Uev3hjNoJ9tEiaSKwYCTBA/mVClPn+Y 2V8tLcP0TNzYsfOUf1dVfKZ5JB4LFAZxQbakcG/AuxzGE/49qxb4Ex72kr2lBcetm6A3 8bqBO5bWFBQo329alyThAuaEVCqSurkpFeX+8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=ULYf45jjMcNtKsZZBZ9NVVRnJtw0vCm67LoRYJXYM5pzskQ4WuoKVZOrjePfiBbsDP UpC46/G690L9m8XUKxMqOMWmm26TlcGUn6oUlcuLNl42HpM0MueDXIfXFFXf7U1MrX/x 43ON3vCBck1inzcT630XeZgJaADHI6d1G3aL4= Received: by 10.151.98.11 with SMTP id a11mr281994ybm.138.1229121435425; Fri, 12 Dec 2008 14:37:15 -0800 (PST) Received: by 10.151.129.12 with HTTP; Fri, 12 Dec 2008 14:37:14 -0800 (PST) Message-ID: <9d0602eb0812121437y236e535dp6202a9c9b9552dc7@mail.gmail.com> Date: Fri, 12 Dec 2008 14:37:14 -0800 From: "Nagappan A" To: "Quiring, Sam" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11062_19207574.1229121434866" References: <9d0602eb0812121304o17fae9f6r8dbc0934aa361e45@mail.gmail.com> Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] AccessibleDeviceEventMask and SPI_registerDeviceEventListener() X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2008 22:37:35 -0000 ------=_Part_11062_19207574.1229121434866 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Sam, On Fri, Dec 12, 2008 at 2:33 PM, Quiring, Sam wrote: > Hi Nagappan, > > Really? So the Python at-spi interface is better maintained than the C > interface? After reading your email I did some googling (I've been ignoring > all things python since I'm working in C). I see that there is quite a bit > of at-spi activity in Python, for example it looks like LDTP has abandoned C > and is exclusively being worked on in Python now, is that true?. Thanks a > lot for the heads up. > The current recording framework (generation of scripts based on events), is completely using pyatspi and we are working on moving the script execution framework to use pyatspi. > Is reliability a problem for other parts of the at-spi C interface? Or is > it mainly just an issue with events? > I noticed the issue is just for events. Thanks Nagappan > > -Sam > > > ------------------------------ > *From:* Nagappan A [mailto:nagappan@gmail.com] > *Sent:* Friday, December 12, 2008 1:04 PM > *To:* Quiring, Sam > *Cc:* gnome-accessibility-devel@gnome.org > *Subject:* Re: [g-a-devel] AccessibleDeviceEventMask and > SPI_registerDeviceEventListener() > > Hi Sam, > > 2008/12/12 Quiring, Sam > >> Greetings, >> >> I have this call in my app: >> >> #define BUTTON_EVENTS (SPI_BUTTON_PRESSED | SPI_BUTTON_RELEASED) >> SPI_registerDeviceEventListener(mouse_device_listener, BUTTON_EVENTS, >> 0); >> My read of the documentation, >> http://library.gnome.org/devel/at-spi-cspi/stable/at-spi-cspi-Registry-queries.html#SPI-registerDeviceEventListener, >> is that my listener should receive all button_press and button_release >> events. Most runs of my application never receive any button_release >> events. Sometimes the app receives 1 button_release. I have no log at this >> time that shows more than 1 button_release. >> >> On the other hand, I believe I am receiving the correct amount of >> button_pressed events. >> > > The events generated in CSPI is not reliable as compared to the pyatspi. If > possible, I recommend to use pyatspi. Also another advantage will be, when > we move to DBus from CORBA, as of now we don't have CSPI for DBus based > implementation. > > Thanks > Nagappan > >> >> Are there any known bugs in this area? >> >> -Sam >> >> >> >> _______________________________________________ >> Gnome-accessibility-devel mailing list >> Gnome-accessibility-devel@gnome.org >> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel >> >> > > > -- > Linux Desktop (GUI Application) Testing Project - > http://ldtp.freedesktop.org > http://nagappanal.blogspot.com > -- Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org http://nagappanal.blogspot.com ------=_Part_11062_19207574.1229121434866 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Sam,

On Fri, Dec 12, 2008 at 2:33 PM, Quiring, Sam <Sam.Quiring@windriver.com> wrote:
Hi Nagappan,
 
Really?  So the Python at-spi interface is better maintained than the C interface?  After reading your email I did some googling (I've been ignoring all things python since I'm working in C).  I see that there is quite a bit of at-spi activity in Python, for example it looks like LDTP has abandoned C and is exclusively being worked on in Python now, is that true?.  Thanks a lot for the heads up.

The current recording framework (generation of scripts based on events), is completely using pyatspi and we are working on moving the script execution framework to use pyatspi.

 
Is reliability a problem for other parts of the at-spi C interface?  Or is it mainly just an issue with events?

I noticed the issue is just for events.

Thanks
Nagappan
 
-Sam
 


From: Nagappan A [mailto:nagappan@gmail.com]
Sent: Friday, December 12, 2008 1:04 PM
To: Quiring, Sam
Cc: gnome-accessibility-devel@gnome.org
Subject: Re: [g-a-devel] AccessibleDeviceEventMask and SPI_registerDeviceEventListener()

Hi Sam,

2008/12/12 Quiring, Sam <Sam.Quiring@windriver.com>
Greetings,
 
I have this call in my app:
 
    #define BUTTON_EVENTS (SPI_BUTTON_PRESSED | SPI_BUTTON_RELEASED)
    SPI_registerDeviceEventListener(mouse_device_listener, BUTTON_EVENTS, 0);
My read of the documentation, http://library.gnome.org/devel/at-spi-cspi/stable/at-spi-cspi-Registry-queries.html#SPI-registerDeviceEventListener, is that my listener should receive all button_press and button_release events.  Most runs of my application never receive any button_release events.  Sometimes the app receives 1 button_release.  I have no log at this time that shows more than 1 button_release.
 
On the other hand, I believe I am receiving the correct amount of button_pressed events.

The events generated in CSPI is not reliable as compared to the pyatspi. If possible, I recommend to use pyatspi. Also another advantage will be, when we move to DBus from CORBA, as of now we don't have CSPI for DBus based implementation.

Thanks
Nagappan
 
Are there any known bugs in this area?
 
-Sam
 
 

_______________________________________________
Gnome-accessibility-devel mailing list
Gnome-accessibility-devel@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel




--
Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org
http://nagappanal.blogspot.com



--
Linux Desktop (GUI Application) Testing Project - http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
------=_Part_11062_19207574.1229121434866-- From Sam.Quiring@windriver.com Fri Dec 12 23:54:55 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C3C5B750063 for ; Fri, 12 Dec 2008 23:54:55 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.599 X-Spam-Level: X-Spam-Status: No, score=-4.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nDRa7+mVI3Ht for ; Fri, 12 Dec 2008 23:54:48 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id 4C52E750031 for ; Fri, 12 Dec 2008 23:54:46 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mBCNsaSL018146; Fri, 12 Dec 2008 15:54:37 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 12 Dec 2008 15:54:36 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 12 Dec 2008 15:54:35 -0800 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [g-a-devel] registering/deregistering event listeners Thread-Index: AclcijafeLmh1bqlQR+wm/+F/XVBPAAKUevA References: From: "Quiring, Sam" To: "Steve Lee" X-OriginalArrivalTime: 12 Dec 2008 23:54:36.0993 (UTC) FILETIME=[FD470B10:01C95CB4] Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] registering/deregistering event listeners X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2008 23:54:56 -0000 Steve, Thanks for your reply, although I have to admit I find it troubling. Yes, I am deregistering in the event handler. It did not occur to me that I should limit what I do in the event handlers. Were you able to build a reliable application using an asynch approach? Are you programming in C, Python, or some other language? -Sam -----Original Message----- From: Steve Lee [mailto:steve@fullmeasure.co.uk]=20 Sent: Friday, December 12, 2008 10:48 AM To: Quiring, Sam Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] registering/deregistering event listeners 2008/12/12 Quiring, Sam : > 1. register the event handlers > 2. wait for the user to do his thing > 3. deregister the event handlers > > After a few executions of this function (3..6), it dies during step 1: > registering the event handlers. In fact the entire GNOME desktop=20 > locks up and I'm forced to power cycle the machine to get control=20 > back. (Is there an easier/cleaner way to restart GNOME?). Are you deregistering in the event handler? I found that it best to do absolute minimum in the handers and call very few functions. In the end I just put events in my own queue and dequeue in idle processing - in other words make processing asynch. I don't know what the official position is. Steve Lee From steve@fullmeasure.co.uk Sat Dec 13 16:04:47 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D1546750031 for ; Sat, 13 Dec 2008 16:04:47 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Amavis-OS-Fingerprint: Linux 2.6 (newer, 2) (up: 4905 hrs), (distance 15, link: ethernet/modem), [209.85.218.19] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eySS7qFGpLFm for ; Sat, 13 Dec 2008 16:04:40 +0000 (GMT) Received: from mail-bw0-f19.google.com (mail-bw0-f19.google.com [209.85.218.19]) by menubar.gnome.org (Postfix) with ESMTP id B6A31750063 for ; Sat, 13 Dec 2008 16:04:39 +0000 (GMT) Received: by bwz12 with SMTP id 12so4674068bwz.15 for ; Sat, 13 Dec 2008 08:04:37 -0800 (PST) Received: by 10.103.160.9 with SMTP id m9mr2290891muo.96.1229184276843; Sat, 13 Dec 2008 08:04:36 -0800 (PST) Received: by 10.103.39.20 with HTTP; Sat, 13 Dec 2008 08:04:36 -0800 (PST) Message-ID: Date: Sat, 13 Dec 2008 16:04:36 +0000 From: "Steve Lee" To: "Quiring, Sam" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] registering/deregistering event listeners X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2008 16:04:48 -0000 Sam 2008/12/12 Quiring, Sam : > Thanks for your reply, although I have to admit I find it troubling. > Yes, I am deregistering in the event handler. It did not occur to me > that I should limit what I do in the event handlers. It's a question of timing and reentrancy; you may hit untested paths. It's rather like the old days of writing interrupt handlers in dos or embedded apps. For example I logged using print statements directly in the handlers and got weird non-deterministic behaviour which threw me for ages. > Were you able to build a reliable application using an asynch approach? > Are you programming in C, Python, or some other language? I use Python by choice these days though have years of C. Python is becomming the API of choice for ATI-SPI. You can now set a flag in the Python API to get async delivery. My program is Jambu http://jambu.fullmeasure.co.uk, though needs some TLC now. The code works reliable, though finding exactly which events get fired when can be 'fun' as it is not tightly defined. You can also look at the code for Accerciser and Orca, and certainly will want to use accerciser. You may find this useful http://live.gnome.org/Accessibility/PythonPoweredAccessibility Steve > -Sam > > -----Original Message----- > From: Steve Lee [mailto:steve@fullmeasure.co.uk] > Sent: Friday, December 12, 2008 10:48 AM > To: Quiring, Sam > Cc: gnome-accessibility-devel@gnome.org > Subject: Re: [g-a-devel] registering/deregistering event listeners > > 2008/12/12 Quiring, Sam : >> 1. register the event handlers >> 2. wait for the user to do his thing >> 3. deregister the event handlers >> >> After a few executions of this function (3..6), it dies during step 1: >> registering the event handlers. In fact the entire GNOME desktop >> locks up and I'm forced to power cycle the machine to get control >> back. (Is there an easier/cleaner way to restart GNOME?). > > Are you deregistering in the event handler? > > I found that it best to do absolute minimum in the handers and call very > few functions. In the end I just put events in my own queue and dequeue > in idle processing - in other words make processing asynch. > > I don't know what the official position is. > > Steve Lee > From Sam.Quiring@windriver.com Sat Dec 13 18:43:44 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E5708750031 for ; Sat, 13 Dec 2008 18:43:44 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.599 X-Spam-Level: X-Spam-Status: No, score=-4.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id q-X1LaKsO9cO for ; Sat, 13 Dec 2008 18:43:36 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id 9FB5F750065 for ; Sat, 13 Dec 2008 18:43:35 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mBDIhStM019936; Sat, 13 Dec 2008 10:43:28 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 13 Dec 2008 10:43:28 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Sat, 13 Dec 2008 10:43:26 -0800 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [g-a-devel] registering/deregistering event listeners Thread-Index: AcldPIa7DWTvF1Z8Tjec8LePsIfw0QADc02Q References: From: "Quiring, Sam" To: "Steve Lee" X-OriginalArrivalTime: 13 Dec 2008 18:43:28.0517 (UTC) FILETIME=[B0696B50:01C95D52] Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] registering/deregistering event listeners X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2008 18:43:45 -0000 =20 Steve, =3D=3D You can now set a flag in the Python API to get async delivery. I'm not sure what you mean by this. If you set this flag, what difference does it make? Our app is written in C. I routinely see my event handlers get interrupted by other event handlers. If it gets more asynch than that, my head will explode. Since learning about the significance of Python in at-spi yesterday, I've read a small bit of the LDTP python recorder code (ldtprecorder.py from v1.4.0). The authors of that code do not seem to have the same concern as you regarding minimalistic event handlers (see globalListenerCallback and globalListenerCallbackDebug). Regardless, I totally understand your caution and am re-examining my event handlers. -Sam -----Original Message----- From: Steve Lee [mailto:steve@fullmeasure.co.uk]=20 Sent: Saturday, December 13, 2008 8:05 AM To: Quiring, Sam Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] registering/deregistering event listeners Sam 2008/12/12 Quiring, Sam : > Thanks for your reply, although I have to admit I find it troubling. > Yes, I am deregistering in the event handler. It did not occur to me=20 > that I should limit what I do in the event handlers. It's a question of timing and reentrancy; you may hit untested paths. It's rather like the old days of writing interrupt handlers in dos or embedded apps. For example I logged using print statements directly in the handlers and got weird non-deterministic behaviour which threw me for ages. > Were you able to build a reliable application using an asynch approach? > Are you programming in C, Python, or some other language? I use Python by choice these days though have years of C. Python is becomming the API of choice for ATI-SPI. You can now set a flag in the Python API to get async delivery. My program is Jambu http://jambu.fullmeasure.co.uk, though needs some TLC now. The code works reliable, though finding exactly which events get fired when can be 'fun' as it is not tightly defined. You can also look at the code for Accerciser and Orca, and certainly will want to use accerciser. You may find this useful http://live.gnome.org/Accessibility/PythonPoweredAccessibility Steve > -Sam > > -----Original Message----- > From: Steve Lee [mailto:steve@fullmeasure.co.uk] > Sent: Friday, December 12, 2008 10:48 AM > To: Quiring, Sam > Cc: gnome-accessibility-devel@gnome.org > Subject: Re: [g-a-devel] registering/deregistering event listeners > > 2008/12/12 Quiring, Sam : >> 1. register the event handlers >> 2. wait for the user to do his thing >> 3. deregister the event handlers >> >> After a few executions of this function (3..6), it dies during step 1: >> registering the event handlers. In fact the entire GNOME desktop=20 >> locks up and I'm forced to power cycle the machine to get control=20 >> back. (Is there an easier/cleaner way to restart GNOME?). > > Are you deregistering in the event handler? > > I found that it best to do absolute minimum in the handers and call=20 > very few functions. In the end I just put events in my own queue and=20 > dequeue in idle processing - in other words make processing asynch. > > I don't know what the official position is. > > Steve Lee > From Sam.Quiring@windriver.com Mon Dec 15 00:40:07 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A1476750087 for ; Mon, 15 Dec 2008 00:40:07 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.598 X-Spam-Level: X-Spam-Status: No, score=-4.598 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id c5i6xOprovzs for ; Mon, 15 Dec 2008 00:40:00 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id 9BFDF75006A for ; Mon, 15 Dec 2008 00:40:00 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mBF0dwi9010077 for ; Sun, 14 Dec 2008 16:39:58 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 14 Dec 2008 16:39:58 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C95E4D.A7F27F98" Date: Sun, 14 Dec 2008 16:39:56 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Interesting event reporting Thread-Index: AcleTacxSdPfEn3sQfSRPqKMqAtX9g== From: "Quiring, Sam" To: X-OriginalArrivalTime: 15 Dec 2008 00:39:58.0592 (UTC) FILETIME=[A84D9800:01C95E4D] Subject: [g-a-devel] Interesting event reporting X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 00:40:07 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C95E4D.A7F27F98 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Greetings, =20 I am trying to determine if our accessibility app can listen for a set of events and, when the user clicks the mouse on an object, figure out what object was clicked. I've been examining different sequences of events that are delivered to our accessibility app. I haven't been able to find definitive documentation on this, so I run experiments and log the events and study those sequences. The situation I'm currently examining has these initial conditions: =20 1. a GUI app (Hello World plus) is comletely visible, but is not active. - the GUI app contains a pushbutton that will bring up a dialog (Information(alert)) - When the GUI app becomes active, the pushbutton has the focus - When the dialog becomes active a pushbutton with text "No" becomes active. 2. another app is active and has the focus; it is a Terminal app (user@ubuntu8041...) =20 The experiment sets up the above situation then clicks just once on the pushbutton in the GUI app. That single click causes a sequence of events to unfold that terminates with the dialog as the active window. =20 I first ran this experiment while executing an at-spi logging app that I've written. When I clicked on the pushbutton, these events and only these events were logged: =20 TCF 40:34.041: ev window:activate (det1: 0x0, det2: 0x0) Hello World plus(frame) TCF 40:34.060: ev window:deactivate (det1: 0x0, det2: 0x0) user@ubuntu8041: ~/ldtp-1.3.0/src(frame) TCF 40:34.061: ev window:create (det1: 0x0, det2: 0x0) Information(alert) TCF 40:34.188: ev window:deactivate (det1: 0x0, det2: 0x0) Hello World plus(frame) TCF 40:34.189: ev window:activate (det1: 0x0, det2: 0x0) Information(alert) TCF 40:34.202: ev focus: (det1: 0x0, det2: 0x0) No(push button.=3Dnothing=3D) Mouse (934, 602) not in Focus <(x:1002..1086, y:616..651) (w:85, h:36)> No mouse events were reported. I was expecting mouse:button:1p and mouse:button:1r, but they never showed up. I reran the experiment a few times and got the same result. =20 I decided to run Accerciser while running this experiment. I set it up to monitor the same events for which my logging app is listening. Wither Accerciser running, every time I ran the experiment the expected mouse events appear, both in my logging app and in accerciser. This caused me to suspect that accerciser is setting something up that my logging app is not. =20 So next I stopped my logging app and just run the experiment with Accerciser monitoring events. When Accerciser is the only app listening for at-spi events, it gets the same result as I originally observed: no mouse events are reported. =20 Now that I've written all this, it seems to me like this could be a bug in at-spi -- I clicked on the pushbutton, the associated events should be delivered to all listeners shouldn't they? The pushbutton is clearly getting the "clicked" signal, because it is that signal handler that brings up the alert dialog. =20 -Sam =20 Here's the Accerciser log showing that it doesn't get any mouse events either: =20 focus:(0, 0, None) -- clicked on the Terminal app to make it active and set up the experiment source: [terminal | Terminal] application: [application | gnome-terminal] window:activate(0, 0, Hello World plus) -- click on pushbutton source: [frame | Hello World plus] application: [application | gtk_hello] window:deactivate(0, 0, user@ubuntu8041: ~/ldtp-1.3.0/src) source: [frame | user@ubuntu8041: ~/ldtp-1.3.0/src] application: [application | gnome-terminal] window:create(0, 0, Information) source: [alert | Information] application: [application | gtk_hello] window:deactivate(0, 0, Hello World plus) source: [frame | Hello World plus] application: [application | gtk_hello] window:activate(0, 0, Information) source: [alert | Information] application: [application | gtk_hello] focus:(0, 0, None) source: [push button | No] application: [application | gtk_hello] =20 Here is my app's log when the mouse events are delivered (the MOUSE events are device events): =20 TCF 34:03.390: ev mouse:button:1p (x: 1081, y: 610) main(unknown) TCF 34:03.385: ev MOUSE key: 1(), keycode: 1, type: button-pressed, modifiers 0x100 xxx:1081 yyy:610 [] TCF 34:03.392: ev window:deactivate (det1: 0x0, det2: 0x0) user@ubuntu8041: ~/ldtp-1.3.0/src(frame) TCF 34:03.443: ev window:activate (det1: 0x0, det2: 0x0) Hello World plus(frame) TCF 34:03.531: ev MOUSE key: 1(), keycode: 1, type: button-released, modifiers 0x0 xxx:1081 yyy:610 [] TCF 34:03.539: ev mouse:button:1r (x: 1081, y: 610) main(unknown) TCF 34:03.615: ev window:create (det1: 0x0, det2: 0x0) Information(alert) TCF 34:03.635: ev window:deactivate (det1: 0x0, det2: 0x0) Hello World plus(frame) TCF 34:03.638: ev window:activate (det1: 0x0, det2: 0x0) Information(alert) TCF 34:03.660: ev focus: (det1: 0x0, det2: 0x0) No(push button.=3Dnothing=3D) Mouse (1081, 610) not in Focus <(x:1186..1270, y:626..661) (w:85, h:36)> Here is Accerciser's log when the mouse events are delivered. =20 =20 window:deactivate(0, 0, user@ubuntu8041: ~/ldtp-1.3.0/src) source: [frame | user@ubuntu8041: ~/ldtp-1.3.0/src] application: [application | gnome-terminal] mouse:button:1p(1081, 610, None) source: [unknown | main] application: None window:activate(0, 0, Hello World plus) source: [frame | Hello World plus] application: [application | gtk_hello] mouse:button:1r(1081, 610, None) source: [unknown | main] application: None window:create(0, 0, Information) source: [alert | Information] application: [application | gtk_hello] window:deactivate(0, 0, Hello World plus) source: [frame | Hello World plus] application: [application | gtk_hello] window:activate(0, 0, Information) source: [alert | Information] application: [application | gtk_hello] focus:(0, 0, None) source: [push button | No] application: [application | gtk_hello] ------_=_NextPart_001_01C95E4D.A7F27F98 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Greetings,
 
I am = trying to=20 determine if our accessibility app can listen for a set of events and, = when the=20 user clicks the mouse on an object, figure out what object was = clicked. =20 I've been examining different sequences of events that are = delivered to=20 our accessibility app.  I haven't been able to find definitive = documentation on this, so I run experiments and log the events and study = those=20 sequences.  The situation I'm currently examining has these initial = conditions:
 
1. a = GUI app (Hello=20 World plus) is comletely visible, but is not = active.
    -=20 the GUI app contains a pushbutton that will bring up a dialog=20 (Information(alert))
    -=20 When the GUI app becomes active, the pushbutton has the=20 focus
    -=20 When the dialog becomes active a pushbutton with text "No" becomes=20 active.
2. = another app is=20 active and has the focus; it is a Terminal app (user@ubuntu8041...)
 
=
The=20 experiment sets up the above situation then clicks just = once on the=20 pushbutton in the GUI app.  That single click causes a sequence of=20 events to unfold that terminates with the dialog as the active=20 window.
 
I = first ran this=20 experiment while executing an at-spi logging app that I've = written. =20 When I clicked on the pushbutton, these events and only these = events were logged:
 
TCF 40:34.041: ev = window:activate (det1: 0x0, det2: 0x0) Hello World plus(frame)
TCF = 40:34.060:=20 ev window:deactivate (det1: 0x0, det2: 0x0) user@ubuntu8041:=20 ~/ldtp-1.3.0/src(frame)
TCF 40:34.061: ev window:create (det1: 0x0, = det2:=20 0x0) Information(alert)
TCF 40:34.188: ev window:deactivate (det1: = 0x0, det2:=20 0x0) Hello World plus(frame)
TCF 40:34.189: ev window:activate (det1: = 0x0,=20 det2: 0x0) Information(alert)
TCF 40:34.202: ev focus: (det1: 0x0, = det2: 0x0)=20 No(push button.=3Dnothing=3D) Mouse (934, 602) not in Focus = <(x:1002..1086,=20 y:616..651) (w:85, h:36)>
No mouse events = were=20 reported.  I was expecting = mouse:button:1p and=20 mouse:button:1r, but they never showed = up.  I=20 reran the experiment a few times and got the same=20 result.
 
I decided to run = Accerciser=20 while running this experiment.  I set it up to monitor the = same events=20 for which my logging app is listening.  Wither Accerciser = running, every time I ran the experiment the expected mouse events = appear,=20 both in my logging app and in accerciser.  This caused me to = suspect that=20 accerciser is setting something up that my logging app is=20 not.
 
So next = I stopped my=20 logging app and just run the experiment with = Accerciser monitoring=20 events.  When Accerciser is the only app listening for at-spi = events,=20 it gets the same result as I originally observed: no mouse = events are=20 reported.
 
Now that I've = written all this,=20 it seems to me like this could be a bug in at-spi -- I clicked on the=20 pushbutton, the associated events should be delivered to all listeners = shouldn't=20 they?  The pushbutton is clearly getting the "clicked" signal, = because it=20 is that signal handler that brings up the alert=20 dialog.
 
-Sam
 
Here's the = Accerciser log=20 showing that it doesn't get any mouse events=20 either:
 
focus:(0, 0,=20 None)   -- clicked on the Terminal = app=20 to make it active and set up the = experiment
   =20 source: [terminal | Terminal]
    application: = [application |=20 gnome-terminal]
window:activate(0, 0, Hello World plus)   = -- click on pushbutton

    = source: [frame=20 | Hello World plus]
    application: [application |=20 gtk_hello]
window:deactivate(0, 0, user@ubuntu8041:=20 ~/ldtp-1.3.0/src)
    source: [frame | user@ubuntu8041:=20 ~/ldtp-1.3.0/src]
    application: [application |=20 gnome-terminal]
window:create(0, 0, = Information)
   =20 source: [alert | Information]
    application: = [application |=20 gtk_hello]
window:deactivate(0, 0, Hello World = plus)
   =20 source: [frame | Hello World plus]
    application:=20 [application | gtk_hello]
window:activate(0, 0,=20 Information)
    source: [alert |=20 Information]
    application: [application |=20 gtk_hello]
focus:(0, 0, None)
    source: [push = button |=20 No]
    application: [application |=20 gtk_hello]
 
Here is my app's = log when the=20 mouse events are delivered (the MOUSE events are device=20 events):
 
TCF 34:03.390: ev = mouse:button:1p (x: 1081, y: 610) = main(unknown)
TCF=20 34:03.385: ev MOUSE key: 1(), keycode: 1, type: button-pressed, = modifiers 0x100=20 xxx:1081 yyy:610 []
TCF 34:03.392: ev window:deactivate (det1: 0x0, = det2:=20 0x0) user@ubuntu8041:=20 ~/ldtp-1.3.0/src(frame)
TCF 34:03.443: ev window:activate (det1: 0x0, = det2:=20 0x0) Hello World plus(frame)
TCF 34:03.531: ev MOUSE key: 1(), = keycode: 1,=20 type: button-released, modifiers 0x0 xxx:1081 yyy:610 []
TCF = 34:03.539: ev=20 mouse:button:1r (x: 1081, y: 610)=20 main(unknown)
TCF 34:03.615: ev window:create (det1: 0x0, det2: 0x0)=20 Information(alert)
TCF 34:03.635: ev window:deactivate (det1: 0x0, = det2: 0x0)=20 Hello World plus(frame)
TCF 34:03.638: ev window:activate (det1: 0x0, = det2:=20 0x0) Information(alert)
TCF 34:03.660: ev focus: (det1: 0x0, det2: = 0x0)=20 No(push button.=3Dnothing=3D) Mouse (1081, 610) not in Focus = <(x:1186..1270,=20 y:626..661) (w:85, h:36)>
Here is = Accerciser's log when=20 the mouse events are delivered.
 
 
window:deactivate(0, 0, user@ubuntu8041:=20 ~/ldtp-1.3.0/src)
    source: [frame | user@ubuntu8041:=20 ~/ldtp-1.3.0/src]
    application: [application |=20 gnome-terminal]
mouse:button:1p(1081, = 610,=20 None)
    source: [unknown | = main]
   =20 application: None
window:activate(0, 0, Hello World=20 plus)
    source: [frame | Hello World=20 plus]
    application: [application | = gtk_hello]
mouse:button:1r
(1081, 610, = None)
   =20 source: [unknown | main]
    application:=20 None
window:create(0, 0, Information)
    source: = [alert |=20 Information]
    application: [application |=20 gtk_hello]
window:deactivate(0, 0, Hello World = plus)
   =20 source: [frame | Hello World plus]
    application:=20 [application | gtk_hello]
window:activate(0, 0,=20 Information)
    source: [alert |=20 Information]
    application: [application |=20 gtk_hello]
focus:(0, 0, None)
    source: [push = button |=20 No]
    application: [application |=20 gtk_hello]

------_=_NextPart_001_01C95E4D.A7F27F98-- From Li.Yuan@Sun.COM Mon Dec 15 02:37:34 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 213CC75009D for ; Mon, 15 Dec 2008 02:37:34 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -5.373 X-Spam-Level: X-Spam-Status: No, score=-5.373 tagged_above=-999 required=2 tests=[AWL=2.226, BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_MED=-4] X-Amavis-OS-Fingerprint: Solaris 10 (beta), (distance 19, link: ethernet/modem), [192.18.19.7] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FwK5dxA4a+Ld for ; Mon, 15 Dec 2008 02:37:23 +0000 (GMT) Received: from sineb-mail-2.sun.com (sineb-mail-2.sun.com [192.18.19.7]) by menubar.gnome.org (Postfix) with ESMTP id 9861175006A for ; Mon, 15 Dec 2008 02:37:15 +0000 (GMT) Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged)) by sineb-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mBF2bApL018802 for ; Mon, 15 Dec 2008 02:37:13 GMT Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0KBW00H01CGD1G00@mail-apac.sun.com> (original mail from Li.Yuan@Sun.COM) for gnome-accessibility-devel@gnome.org; Mon, 15 Dec 2008 10:37:10 +0800 (SGT) Received: from [129.158.217.197] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0KBW005QXCLXM5B1@mail-apac.sun.com>; Mon, 15 Dec 2008 10:37:10 +0800 (SGT) Date: Mon, 15 Dec 2008 10:36:39 +0800 From: Li Yuan In-reply-to: Sender: Li.Yuan@Sun.COM To: "Quiring, Sam" Message-id: <4945C2B7.5090401@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: User-Agent: Thunderbird 2.0.0.18 (X11/20081125) Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] Interesting event reporting X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 02:37:34 -0000 Quiring, Sam wrote: > > So next I stopped my logging app and just run the experiment with > Accerciser monitoring events. When Accerciser is the only app > listening for at-spi events, it gets the same result as I originally > observed: no mouse events are reported. I didn't see this on my system... Accerciser can get all the mouse button events when it is the only AT. Li From Sam.Quiring@windriver.com Mon Dec 15 03:07:52 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 21C327500CC for ; Mon, 15 Dec 2008 03:07:52 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.599 X-Spam-Level: X-Spam-Status: No, score=-4.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id avE365gJ9+di for ; Mon, 15 Dec 2008 03:07:45 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id 75B5475009D for ; Mon, 15 Dec 2008 03:07:45 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mBF37fcF003072; Sun, 14 Dec 2008 19:07:41 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 14 Dec 2008 19:07:42 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Sun, 14 Dec 2008 19:07:40 -0800 Message-ID: In-Reply-To: <4945C2B7.5090401@sun.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [g-a-devel] Interesting event reporting Thread-Index: AcleXg+m7zlJobNnRAi3iR+VciHD+QAAB6Xg References: <4945C2B7.5090401@sun.com> From: "Quiring, Sam" To: X-OriginalArrivalTime: 15 Dec 2008 03:07:42.0098 (UTC) FILETIME=[4B5D4720:01C95E62] Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] Interesting event reporting X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 03:07:52 -0000 Sorry, my statement wasn't clear. What I meant was "when I run that particular experiment Accerciser does not record any mouse events." Accerciser does record mouse events both before and after I run the experiment. I just tried it again and Accerciser did *not* record the mouse click when I ran that experiment. -Sam -----Original Message----- From: Li.Yuan@sun.com [mailto:Li.Yuan@sun.com]=20 Sent: Sunday, December 14, 2008 6:37 PM To: Quiring, Sam Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] Interesting event reporting Quiring, Sam wrote: > =20 > So next I stopped my logging app and just run the experiment with=20 > Accerciser monitoring events. When Accerciser is the only app=20 > listening for at-spi events, it gets the same result as I originally > observed: no mouse events are reported. I didn't see this on my system... Accerciser can get all the mouse button events when it is the only AT. Li From Li.Yuan@Sun.COM Mon Dec 15 05:53:47 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D556E7500A8 for ; Mon, 15 Dec 2008 05:53:47 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -5.38 X-Spam-Level: X-Spam-Status: No, score=-5.38 tagged_above=-999 required=2 tests=[AWL=2.219, BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_MED=-4] X-Amavis-OS-Fingerprint: Solaris 10 (beta), (distance 19, link: ethernet/modem), [192.18.19.7] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G8AD2RhsJ5TP for ; Mon, 15 Dec 2008 05:53:39 +0000 (GMT) Received: from sineb-mail-2.sun.com (sineb-mail-2.sun.com [192.18.19.7]) by menubar.gnome.org (Postfix) with ESMTP id A391E75006A for ; Mon, 15 Dec 2008 05:53:35 +0000 (GMT) Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged)) by sineb-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mBF5rXRI004945 for ; Mon, 15 Dec 2008 05:53:33 GMT Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0KBW00J01LMGOA00@mail-apac.sun.com> (original mail from Li.Yuan@Sun.COM) for gnome-accessibility-devel@gnome.org; Mon, 15 Dec 2008 13:53:33 +0800 (SGT) Received: from [129.158.217.85] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0KBW0051CLP8M5N1@mail-apac.sun.com>; Mon, 15 Dec 2008 13:53:33 +0800 (SGT) Date: Mon, 15 Dec 2008 13:53:02 +0800 From: Li Yuan In-reply-to: Sender: Li.Yuan@Sun.COM To: "Quiring, Sam" Message-id: <4945F0BE.5010907@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: User-Agent: Thunderbird 2.0.0.18 (X11/20081125) Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] registering/deregistering event listeners X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 05:53:48 -0000 Quiring, Sam wrote: > Greetings, > > In my app that interfaces to at-spi I have a function that requires > that I listen for a bunch of different event types. During normal > operation of the app I do not need to listen for these events. The > implementation of this function looks like this: > > 1. register the event handlers > 2. wait for the user to do his thing > 3. deregister the event handlers > > After a few executions of this function (3..6), it dies during step 1: > registering the event handlers. Can you show me the traces of at-spi-registryd and your application? Li > In fact the entire GNOME desktop locks up and I'm forced to power > cycle the machine to get control back. (Is there an easier/cleaner > way to restart GNOME?). > > During app initialization I create the event listeners using > SPI_createAccessibleEventListener() and > SPI_createAccessibleDeviceListener(). My app assumes that once these > listeners are created it can register and deregister them as event > listeners as many times as it wants. Is that correct? > > The code implements deregistering the non-device event listeners using > SPI_derefisterGlobalEventListenerAll() -- I don't know if that matters. > > Any help would be appreciated. > > -Sam > ------------------------------------------------------------------------ > > _______________________________________________ > Gnome-accessibility-devel mailing list > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel > From Jeff.Cai@Sun.COM Mon Dec 15 11:26:22 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A1A775006A for ; Mon, 15 Dec 2008 11:26:22 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -5.18 X-Spam-Level: X-Spam-Status: No, score=-5.18 tagged_above=-999 required=2 tests=[AWL=2.419, BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_MED=-4] X-Amavis-OS-Fingerprint: Solaris 10 (beta), (distance 19, link: ethernet/modem), [192.18.19.7] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SJSMtE1oTzer for ; Mon, 15 Dec 2008 11:26:14 +0000 (GMT) Received: from sineb-mail-2.sun.com (sineb-mail-2.sun.com [192.18.19.7]) by menubar.gnome.org (Postfix) with ESMTP id 7176B7500EA for ; Mon, 15 Dec 2008 11:26:06 +0000 (GMT) Received: from fe-apac-06.sun.com (fe-apac-06.sun.com [192.18.19.177] (may be forged)) by sineb-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mBFBQ3oO029542 for ; Mon, 15 Dec 2008 11:26:04 GMT Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0KBX00801115EX00@mail-apac.sun.com> (original mail from Jeff.Cai@Sun.COM) for gnome-accessibility-devel@gnome.org; Mon, 15 Dec 2008 19:26:03 +0800 (SGT) Received: from [129.158.217.199] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0KBX003SY13E7M64@mail-apac.sun.com>; Mon, 15 Dec 2008 19:26:03 +0800 (SGT) Date: Mon, 15 Dec 2008 19:20:52 +0800 From: Jeff Cai In-reply-to: Sender: Jeff.Cai@Sun.COM To: "Quiring, Sam" Message-id: <49463D94.6090307@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=UTF-8 Content-transfer-encoding: 7BIT References: User-Agent: Thunderbird 2.0.0.18 (X11/20081201) Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] AccessibleDeviceEventMask and SPI_registerDeviceEventListener() X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 11:26:22 -0000 Quiring, Sam wrote: > Greetings, > > I have this call in my app: > > #define BUTTON_EVENTS (SPI_BUTTON_PRESSED | SPI_BUTTON_RELEASED) > SPI_registerDeviceEventListener(mouse_device_listener, > BUTTON_EVENTS, 0); > My read of the documentation, > http://library.gnome.org/devel/at-spi-cspi/stable/at-spi-cspi-Registry-queries.html#SPI-registerDeviceEventListener, > is that my listener should receive all button_press and button_release > events. Most runs of my application never receive any button_release > events. Sometimes the app receives 1 button_release. I have no log > at this time that shows more than 1 button_release. > > On the other hand, I believe I am receiving the correct amount of > button_pressed events. > > Are there any known bugs in this area? Have you run the test program under at-spi/test/event-listener-test.c? Does the test work well? > > -Sam > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gnome-accessibility-devel mailing list > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel > From Jeff.Cai@Sun.COM Mon Dec 15 11:31:00 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 77A827500F6 for ; Mon, 15 Dec 2008 11:31:00 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -5.19 X-Spam-Level: X-Spam-Status: No, score=-5.19 tagged_above=-999 required=2 tests=[AWL=2.409, BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_MED=-4] X-Amavis-OS-Fingerprint: Solaris 10 (beta), (distance 19, link: ethernet/modem), [192.18.19.7] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hBNSsGjMdVrZ for ; Mon, 15 Dec 2008 11:30:51 +0000 (GMT) Received: from sineb-mail-2.sun.com (sineb-mail-2.sun.com [192.18.19.7]) by menubar.gnome.org (Postfix) with ESMTP id 2FC5075006A for ; Mon, 15 Dec 2008 11:30:50 +0000 (GMT) Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged)) by sineb-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mBFBUmql029717 for ; Mon, 15 Dec 2008 11:30:48 GMT Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0KBX0010116E7000@mail-apac.sun.com> (original mail from Jeff.Cai@Sun.COM) for gnome-accessibility-devel@gnome.org; Mon, 15 Dec 2008 19:30:48 +0800 (SGT) Received: from [129.158.217.199] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0KBX003BK1BB3F32@mail-apac.sun.com>; Mon, 15 Dec 2008 19:30:48 +0800 (SGT) Date: Mon, 15 Dec 2008 19:25:37 +0800 From: Jeff Cai In-reply-to: <9d0602eb0812121304o17fae9f6r8dbc0934aa361e45@mail.gmail.com> Sender: Jeff.Cai@Sun.COM To: Nagappan A Message-id: <49463EB1.5090601@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=UTF-8 Content-transfer-encoding: 7BIT References: <9d0602eb0812121304o17fae9f6r8dbc0934aa361e45@mail.gmail.com> User-Agent: Thunderbird 2.0.0.18 (X11/20081201) Cc: gnome-accessibility-devel@gnome.org, "Quiring, Sam" Subject: Re: [g-a-devel] AccessibleDeviceEventMask and SPI_registerDeviceEventListener() X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 11:31:00 -0000 Hi, Nagappan Will CSPI support D-BUS later after we migrate from CORBA to D-BUS? Or CSPI will be EOLed? If an AT program is written in C, how could it use the interface provided by pyatspi? Jeff Nagappan A wrote: > Hi Sam, > > 2008/12/12 Quiring, Sam > > > Greetings, > > I have this call in my app: > > #define BUTTON_EVENTS (SPI_BUTTON_PRESSED | SPI_BUTTON_RELEASED) > SPI_registerDeviceEventListener(mouse_device_listener, > BUTTON_EVENTS, 0); > My read of the documentation, > http://library.gnome.org/devel/at-spi-cspi/stable/at-spi-cspi-Registry-queries.html#SPI-registerDeviceEventListener, > is that my listener should receive all button_press and > button_release events. Most runs of my application never receive > any button_release events. Sometimes the app receives 1 > button_release. I have no log at this time that shows more than 1 > button_release. > > On the other hand, I believe I am receiving the correct amount of > button_pressed events. > > > The events generated in CSPI is not reliable as compared to the > pyatspi. If possible, I recommend to use pyatspi. Also another > advantage will be, when we move to DBus from CORBA, as of now we don't > have CSPI for DBus based implementation. Nagappan > > Thanks > Nagappan > > > Are there any known bugs in this area? > > -Sam > > > > _______________________________________________ > Gnome-accessibility-devel mailing list > Gnome-accessibility-devel@gnome.org > > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel > > > > > -- > Linux Desktop (GUI Application) Testing Project - > http://ldtp.freedesktop.org > http://nagappanal.blogspot.com > ------------------------------------------------------------------------ > > _______________________________________________ > Gnome-accessibility-devel mailing list > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel > From William.Walker@Sun.COM Mon Dec 15 14:55:27 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DC4E0750120 for ; Mon, 15 Dec 2008 14:55:27 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -5.737 X-Spam-Level: X-Spam-Status: No, score=-5.737 tagged_above=-999 required=2 tests=[AWL=1.862, BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_MED=-4] X-Amavis-OS-Fingerprint: Solaris 9, (distance 12, link: ethernet/modem), [192.18.98.36] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rsGTexxbeuG2 for ; Mon, 15 Dec 2008 14:55:19 +0000 (GMT) Received: from brmea-mail-4.sun.com (brmea-mail-4.Sun.COM [192.18.98.36]) by menubar.gnome.org (Postfix) with ESMTP id 03E9B75006A for ; Mon, 15 Dec 2008 14:55:18 +0000 (GMT) Received: from fe-amer-09.sun.com ([192.18.109.79]) by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mBFEtH5F022687 for ; Mon, 15 Dec 2008 14:55:17 GMT Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0KBX006019Y16A00@mail-amer.sun.com> (original mail from William.Walker@Sun.COM) for gnome-accessibility-devel@gnome.org; Mon, 15 Dec 2008 07:55:17 -0700 (MST) Received: from [129.148.9.94] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0KBX003L4ARUHO70@mail-amer.sun.com>; Mon, 15 Dec 2008 07:55:07 -0700 (MST) Date: Mon, 15 Dec 2008 09:55:06 -0500 From: Willie Walker In-reply-to: <49463EB1.5090601@sun.com> Sender: William.Walker@Sun.COM To: Jeff Cai Message-id: <49466FCA.8090801@Sun.COM> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <9d0602eb0812121304o17fae9f6r8dbc0934aa361e45@mail.gmail.com> <49463EB1.5090601@sun.com> User-Agent: Thunderbird 2.0.0.16 (X11/20080807) Cc: gnome-accessibility-devel@gnome.org, "Quiring, Sam" Subject: Re: [g-a-devel] AccessibleDeviceEventMask and SPI_registerDeviceEventListener() X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list Reply-To: William.Walker@Sun.COM List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 14:55:28 -0000 Hi Jeff an everyone: The AT-SPI/D-Bus work is being tracked at http://www.linuxfoundation.org/en/Accessibility/ATK/AT-SPI/AT-SPI_on_D-Bus, and it includes a plan to migrate CSPI to D-Bus. IMO, doing this work in Python is a lot easier than doing it in C, so that's why we're seeing more and more projects on the assistive technology and testing side moving from the C bindings to the Python bindings. Hope this helps, Will On 12/15/08 06:25, Jeff Cai wrote: > Hi, Nagappan > > Will CSPI support D-BUS later after we migrate from CORBA to D-BUS? Or > CSPI will be EOLed? > > If an AT program is written in C, how could it use the interface > provided by pyatspi? > > Jeff > > Nagappan A wrote: >> Hi Sam, >> >> 2008/12/12 Quiring, Sam > > >> >> Greetings, >> I have this call in my app: >> #define BUTTON_EVENTS (SPI_BUTTON_PRESSED | >> SPI_BUTTON_RELEASED) >> SPI_registerDeviceEventListener(mouse_device_listener, >> BUTTON_EVENTS, 0); >> My read of the documentation, >> >> http://library.gnome.org/devel/at-spi-cspi/stable/at-spi-cspi-Registry-queries.html#SPI-registerDeviceEventListener, >> >> is that my listener should receive all button_press and >> button_release events. Most runs of my application never receive >> any button_release events. Sometimes the app receives 1 >> button_release. I have no log at this time that shows more than 1 >> button_release. >> On the other hand, I believe I am receiving the correct >> amount of >> button_pressed events. >> >> >> The events generated in CSPI is not reliable as compared to the >> pyatspi. If possible, I recommend to use pyatspi. Also another >> advantage will be, when we move to DBus from CORBA, as of now we don't >> have CSPI for DBus based implementation. > Nagappan > > > >> >> Thanks >> Nagappan >> >> Are there any known bugs in this area? >> -Sam >> >> _______________________________________________ >> Gnome-accessibility-devel mailing list >> Gnome-accessibility-devel@gnome.org >> >> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel >> >> >> >> >> -- >> Linux Desktop (GUI Application) Testing Project - >> http://ldtp.freedesktop.org >> http://nagappanal.blogspot.com >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Gnome-accessibility-devel mailing list >> Gnome-accessibility-devel@gnome.org >> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel >> > > _______________________________________________ > Gnome-accessibility-devel mailing list > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel From Sam.Quiring@windriver.com Mon Dec 15 16:26:26 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D0AC750131 for ; Mon, 15 Dec 2008 16:26:26 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.599 X-Spam-Level: X-Spam-Status: No, score=-4.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lPD41e-Sqi1r for ; Mon, 15 Dec 2008 16:26:18 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id 021A4750129 for ; Mon, 15 Dec 2008 16:26:15 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mBFGQDYP027221; Mon, 15 Dec 2008 08:26:13 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 15 Dec 2008 08:26:13 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 15 Dec 2008 08:26:12 -0800 Message-ID: In-Reply-To: <4945F0BE.5010907@sun.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [g-a-devel] registering/deregistering event listeners Thread-Index: AcleeYRqbHxaaCHWTF+fXBBKnUwd8wAV5GvQ References: <4945F0BE.5010907@sun.com> From: "Quiring, Sam" To: X-OriginalArrivalTime: 15 Dec 2008 16:26:13.0774 (UTC) FILETIME=[D8F2DAE0:01C95ED1] Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] registering/deregistering event listeners X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 16:26:26 -0000 Hello Li, I am working on fixing a race condition that I discovered just after reporting the problem below. When I get the race condition resolved, I'll see if I can reproduce the problem reported below. -Sam -----Original Message----- From: Li.Yuan@sun.com [mailto:Li.Yuan@sun.com]=20 Sent: Sunday, December 14, 2008 9:53 PM To: Quiring, Sam Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] registering/deregistering event listeners Quiring, Sam wrote: > Greetings, > =20 > In my app that interfaces to at-spi I have a function that requires=20 > that I listen for a bunch of different event types. During normal=20 > operation of the app I do not need to listen for these events. The=20 > implementation of this function looks like this: > =20 > 1. register the event handlers > 2. wait for the user to do his thing > 3. deregister the event handlers > =20 > After a few executions of this function (3..6), it dies during step 1: > registering the event handlers. Can you show me the traces of at-spi-registryd and your application? Li > In fact the entire GNOME desktop locks up and I'm forced to power=20 > cycle the machine to get control back. (Is there an easier/cleaner=20 > way to restart GNOME?). > =20 > During app initialization I create the event listeners using > SPI_createAccessibleEventListener() and=20 > SPI_createAccessibleDeviceListener(). My app assumes that once these=20 > listeners are created it can register and deregister them as event=20 > listeners as many times as it wants. Is that correct? > =20 > The code implements deregistering the non-device event listeners using > SPI_derefisterGlobalEventListenerAll() -- I don't know if that matters. > =20 > Any help would be appreciated. > =20 > -Sam > ---------------------------------------------------------------------- > -- > > _______________________________________________ > Gnome-accessibility-devel mailing list=20 > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel > =20 From Sam.Quiring@windriver.com Mon Dec 15 18:47:07 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7C3F1750147 for ; Mon, 15 Dec 2008 18:47:07 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.599 X-Spam-Level: X-Spam-Status: No, score=-4.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o17Aas6SYygg for ; Mon, 15 Dec 2008 18:46:59 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id 401CF75030D for ; Mon, 15 Dec 2008 18:45:43 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mBFIjdmf006012; Mon, 15 Dec 2008 10:45:39 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 15 Dec 2008 10:45:39 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 15 Dec 2008 10:45:38 -0800 Message-ID: In-Reply-To: <49463D94.6090307@sun.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [g-a-devel] AccessibleDeviceEventMaskand SPI_registerDeviceEventListener() Thread-Index: AcleqEJHtmdf3dJrRW2U9yS1UebIJQANHAoA References: <49463D94.6090307@sun.com> From: "Quiring, Sam" To: "Jeff Cai" X-OriginalArrivalTime: 15 Dec 2008 18:45:39.0902 (UTC) FILETIME=[538CADE0:01C95EE5] Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] AccessibleDeviceEventMaskand SPI_registerDeviceEventListener() X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 18:47:07 -0000 Cai, Jeff wrote: > Have you run the test program under at-spi/test/event-listener-test.c? > Does the test work well? I have at-spi-1.24.0. I tried installing it by running "./configure", but I got this: configure: error: Your intltool is too old. You need intltool 0.40.0 or later. I downloaded intltool 0.40 and tried installing that, but got a syntax error in the installation. So I gave up. I am working on fixing a race condition that I discovered after reporting the problem below. When I get the race condition resolved, I'll see if I can reproduce the problem reported below. -Sam -----Original Message----- From: gnome-accessibility-devel-bounces@gnome.org [mailto:gnome-accessibility-devel-bounces@gnome.org] On Behalf Of Jeff Cai Sent: Monday, December 15, 2008 3:21 AM To: Quiring, Sam Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] AccessibleDeviceEventMaskand SPI_registerDeviceEventListener() Quiring, Sam wrote: > Greetings, > =20 > I have this call in my app: > =20 > #define BUTTON_EVENTS (SPI_BUTTON_PRESSED | SPI_BUTTON_RELEASED) > SPI_registerDeviceEventListener(mouse_device_listener, > BUTTON_EVENTS, 0); > My read of the documentation, > http://library.gnome.org/devel/at-spi-cspi/stable/at-spi-cspi-Registry > -queries.html#SPI-registerDeviceEventListener, > is that my listener should receive all button_press and button_release > events. Most runs of my application never receive any button_release=20 > events. Sometimes the app receives 1 button_release. I have no log=20 > at this time that shows more than 1 button_release. > =20 > On the other hand, I believe I am receiving the correct amount of=20 > button_pressed events. > =20 > Are there any known bugs in this area? Have you run the test program under at-spi/test/event-listener-test.c?=20 Does the test work well? > =20 > -Sam > =20 > =20 > ---------------------------------------------------------------------- > -- > > _______________________________________________ > Gnome-accessibility-devel mailing list=20 > Gnome-accessibility-devel@gnome.org > http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel > =20 _______________________________________________ Gnome-accessibility-devel mailing list Gnome-accessibility-devel@gnome.org http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel From Sam.Quiring@windriver.com Mon Dec 15 20:54:11 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id F2A60750115 for ; Mon, 15 Dec 2008 20:54:10 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -4.442 X-Spam-Level: X-Spam-Status: No, score=-4.442 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1, SUBJECT_FUZZY_TION=0.156] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pqV-bvPKdHyg for ; Mon, 15 Dec 2008 20:54:03 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id 7C15875007E for ; Mon, 15 Dec 2008 20:54:02 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mBFKs1Pf006059 for ; Mon, 15 Dec 2008 12:54:01 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 15 Dec 2008 12:54:01 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C95EF7.41A3D1FC" Date: Mon, 15 Dec 2008 12:54:00 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to tell if a button has been clicked? Thread-Index: Acle90Fqo15vEiyRQeK8MsJ4/p9NUA== From: "Quiring, Sam" To: X-OriginalArrivalTime: 15 Dec 2008 20:54:01.0431 (UTC) FILETIME=[4204BE70:01C95EF7] Subject: [g-a-devel] How to tell if a button has been clicked? X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 20:54:11 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C95EF7.41A3D1FC Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Greetings, =20 Suppose the user of the Gnome desktop does this: =20 1. runs and app with a button on it 2. moves the mouse on top of the button 3. presses the left mouse button down on the button 4. moves the mouse off the button 5. releases the left mouse button =20 When you do this, the button is not clicked, that is, the signal handler in the app for "clicked" is not called. =20 What at-spi event sequence would reveal this to an accessibility application? The best solution I've come up with so far is to record the bounding box of the widget on which the mouse was pressed and, in the button-release handler, check to see if the mouse is still inside that bounding box. =20 Is there a better way? =20 I just finished adding event handlers for Gtk:GtkWidget:button-press-event and Gtk:GtkWidget:button-release-event. In the above situation my app gets both events and even though the mouse is no longer on the button when the user releases the mouse button, the Gtk:GtkWidget:button-release-event source object is the button. Is this a bug? =20 -Sam ------_=_NextPart_001_01C95EF7.41A3D1FC Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Greetings,
 
Suppose the user of=20 the Gnome desktop does this:
 
1. = runs and app with=20 a button on it
2. = moves the mouse=20 on top of the button
3. = presses the left=20 mouse button down on the button
4. = moves the mouse=20 off the button
5. = releases the left=20 mouse button
 
When = you do this,=20 the button is not clicked, that is, the signal handler in the app for = "clicked"=20 is not called.
 
What = at-spi event=20 sequence would reveal this to an accessibility application?   = The best=20 solution I've come up with so far is to record the bounding box of the = widget on=20 which the mouse was pressed and, in the button-release handler, check to = see if=20 the mouse is still inside that bounding box.
 
Is = there a better=20 way?
 
I just = finished=20 adding event handlers for=20 Gtk:GtkWidget:button-press-event and=20 Gtk:GtkWidget:button-release-event.  = In the=20 above situation my app gets both events and even though the mouse = is no=20 longer on the button when the user releases the mouse=20 button, the Gtk:GtkWidget:button-release-event= source=20 object is the button.  Is this a bug?
 
-Sam
------_=_NextPart_001_01C95EF7.41A3D1FC-- From Li.Yuan@Sun.COM Tue Dec 16 03:00:16 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7FEB5750135 for ; Tue, 16 Dec 2008 03:00:16 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -5.309 X-Spam-Level: X-Spam-Status: No, score=-5.309 tagged_above=-999 required=2 tests=[AWL=2.134, BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_MED=-4, SUBJECT_FUZZY_TION=0.156] X-Amavis-OS-Fingerprint: Solaris 10 (beta), (distance 19, link: ethernet/modem), [192.18.19.7] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wB8cdqBKMLcw for ; Tue, 16 Dec 2008 03:00:09 +0000 (GMT) Received: from sineb-mail-2.sun.com (sineb-mail-2.sun.com [192.18.19.7]) by menubar.gnome.org (Postfix) with ESMTP id B784A7501A9 for ; Tue, 16 Dec 2008 03:00:03 +0000 (GMT) Received: from fe-apac-06.sun.com (fe-apac-06.sun.com [192.18.19.177] (may be forged)) by sineb-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mBG2xwRa025452 for ; Tue, 16 Dec 2008 03:00:01 GMT Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0KBY00I018BI2A00@mail-apac.sun.com> (original mail from Li.Yuan@Sun.COM) for gnome-accessibility-devel@gnome.org; Tue, 16 Dec 2008 10:59:58 +0800 (SGT) Received: from [129.158.217.85] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0KBY003AL8BX7M68@mail-apac.sun.com>; Tue, 16 Dec 2008 10:59:58 +0800 (SGT) Date: Tue, 16 Dec 2008 10:59:26 +0800 From: Li Yuan In-reply-to: Sender: Li.Yuan@Sun.COM To: "Quiring, Sam" Message-id: <4947198E.6010906@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: User-Agent: Thunderbird 2.0.0.18 (X11/20081126) Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] How to tell if a button has been clicked? X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 03:00:16 -0000 Quiring, Sam wrote: > Greetings, > > Suppose the user of the Gnome desktop does this: > > 1. runs and app with a button on it > 2. moves the mouse on top of the button > 3. presses the left mouse button down on the button > 4. moves the mouse off the button > 5. releases the left mouse button > > When you do this, the button is not clicked, that is, the signal > handler in the app for "clicked" is not called. > > What at-spi event sequence would reveal this to an accessibility > application? The best solution I've come up with so far is to record > the bounding box of the widget on which the mouse was pressed and, in > the button-release handler, check to see if the mouse is still inside > that bounding box. Yes, that's the way I am thinking of. > > Is there a better way? > > I just finished adding event handlers for > */Gtk:GtkWidget:button-press-event/* and > */Gtk:GtkWidget:button-release-event/*. In the above situation my app > gets both events and even though the mouse is no longer on the button > when the user releases the mouse > button, the *Gtk:GtkWidget:button-release-event* source object is the > button. Is this a bug? We probably need to discuss this in Gtk+ list. Li From mark.doffman@codethink.co.uk Thu Dec 18 10:20:35 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6FDD27500B4 for ; Thu, 18 Dec 2008 10:20:35 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.599 X-Spam-Level: X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Amavis-OS-Fingerprint: Linux 2.6, seldom 2.4 (older, 4) (up: 9325 hrs), (distance 15, link: ethernet/modem), [208.78.103.131] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A6urn5CKF015 for ; Thu, 18 Dec 2008 10:20:29 +0000 (GMT) Received: from mail.codethink.co.uk (floopily.codethink.co.uk [208.78.103.131]) by menubar.gnome.org (Postfix) with ESMTP id 2D8BA7500EC for ; Thu, 18 Dec 2008 10:20:26 +0000 (GMT) Received: from [192.168.0.3] (82-69-7-91.dsl.in-addr.zen.co.uk [82.69.7.91]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.codethink.co.uk (Postfix) with ESMTPSA id 7E0B8C089C for ; Thu, 18 Dec 2008 10:20:24 +0000 (GMT) Message-ID: <494A23E7.80306@codethink.co.uk> Date: Thu, 18 Dec 2008 10:20:23 +0000 From: Mark Doffman User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: gnome-accessibility-devel@gnome.org References: In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [g-a-devel] AccessibleDeviceEventMask and, SPI_registerDeviceEventListener() X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2008 10:20:35 -0000 Hi Jeff, > Will CSPI support D-BUS later after we migrate from CORBA to D-BUS? Or > CSPI will be EOLed? > > If an AT program is written in C, how could it use the interface > provided by pyatspi? When moving to D-Bus we have no intention of EOLing cspi. We need all the ATs currently written using the library to keep going. Its true that at the moment cspi is out-of-action in the D-Bus project. But Mike Gorse has recently been putting patches in, so it may be up and running soon. Two cents on an old issue... My personal preference would be to use pyatspi for new ATs. The interface is better, and who wants to code in 'C' anyway. :) Thanks Mark From Sam.Quiring@windriver.com Tue Dec 30 15:54:23 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6E35575000A for ; Tue, 30 Dec 2008 15:54:23 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.998 X-Spam-Level: X-Spam-Status: No, score=-1.998 tagged_above=-999 required=2 tests=[BAYES_50=0.001, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KHKOfqtpA54b for ; Tue, 30 Dec 2008 15:54:16 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id 106E2750006 for ; Tue, 30 Dec 2008 15:54:13 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mBUFsB9D011150 for ; Tue, 30 Dec 2008 07:54:11 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 30 Dec 2008 07:54:12 -0800 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C96A96.DBC3A69D" X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Tue, 30 Dec 2008 07:54:10 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Dangling pointers when an Accessible * window is killed Thread-Index: AclqltsDYABlQBcnRk2qDjAU7gpfTw== From: "Quiring, Sam" To: X-OriginalArrivalTime: 30 Dec 2008 15:54:12.0665 (UTC) FILETIME=[DC132290:01C96A96] Subject: [g-a-devel] Dangling pointers when an Accessible * window is killed X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Dec 2008 15:54:23 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C96A96.DBC3A69D Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Greetings, =20 We were running an experiment where our app has an Accessible * pointer to a window. If the window is closed and the app then tries to use the Accessible * pointer, the at-spi system gets a segfault. Is there a good way to test the validity of an Accessible * pointer so we can avoid the segfault? Or is segfault the normal at-spi way of telling the accessible application that a window has disappeared? =20 -Sam =20 ------_=_NextPart_001_01C96A96.DBC3A69D Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Greetings,
 
We = were running an=20 experiment where our app has an Accessible * pointer to a window.  = If the=20 window is closed and the app then tries to use the Accessible=20 * pointer, the at-spi system gets a segfault.  Is there a good = way to=20 test the validity of an Accessible * pointer so we can avoid the = segfault? =20 Or is segfault the normal at-spi way of telling the accessible = application that=20 a window has disappeared?
 
-Sam
 
------_=_NextPart_001_01C96A96.DBC3A69D-- From Li.Yuan@Sun.COM Wed Dec 31 02:47:37 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8202475000A for ; Wed, 31 Dec 2008 02:47:37 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -5.393 X-Spam-Level: X-Spam-Status: No, score=-5.393 tagged_above=-999 required=2 tests=[AWL=2.206, BAYES_00=-2.599, L_P0F_Unix=-1, RCVD_IN_DNSWL_MED=-4] X-Amavis-OS-Fingerprint: Solaris 10 (beta), (distance 19, link: ethernet/modem), [192.18.19.7] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lFRB8iqhtgD0 for ; Wed, 31 Dec 2008 02:47:31 +0000 (GMT) Received: from sineb-mail-2.sun.com (sineb-mail-2.sun.com [192.18.19.7]) by menubar.gnome.org (Postfix) with ESMTP id E5D5F7501A1 for ; Wed, 31 Dec 2008 02:47:25 +0000 (GMT) Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged)) by sineb-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id mBV2l9A2019205 for ; Wed, 31 Dec 2008 02:47:22 GMT Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0KCP00C01ZNNT500@mail-apac.sun.com> (original mail from Li.Yuan@Sun.COM) for gnome-accessibility-devel@gnome.org; Wed, 31 Dec 2008 10:47:09 +0800 (SGT) Received: from [129.158.217.197] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0KCP0037SZQK3FGI@mail-apac.sun.com>; Wed, 31 Dec 2008 10:47:09 +0800 (SGT) Date: Wed, 31 Dec 2008 10:46:23 +0800 From: Li Yuan In-reply-to: Sender: Li.Yuan@Sun.COM To: "Quiring, Sam" Message-id: <495ADCFF.5080704@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: User-Agent: Thunderbird 2.0.0.18 (X11/20081125) Cc: gnome-accessibility-devel@gnome.org Subject: Re: [g-a-devel] Dangling pointers when an Accessible * window is killed X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 02:47:37 -0000 Quiring, Sam wrote: > Greetings, > > We were running an experiment where our app has an Accessible * > pointer to a window. Your app acts as an AT, right? > If the window is closed and the app then tries to use the Accessible > * pointer, the at-spi system gets a segfault. How did you get the pointer? Did you ref it? If so there could be a bug in GAIL. > Is there a good way to test the validity of an Accessible * pointer so > we can avoid the segfault? Or is segfault the normal at-spi way of > telling the accessible application that a window has disappeared? The object should not be finalized if you still have reference. Regards, Li From Sam.Quiring@windriver.com Wed Dec 31 22:21:03 2008 Return-Path: X-Original-To: gnome-accessibility-devel@gnome.org Delivered-To: gnome-accessibility-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 410A375007C for ; Wed, 31 Dec 2008 22:21:03 +0000 (GMT) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.184 X-Spam-Level: X-Spam-Status: No, score=-2.184 tagged_above=-999 required=2 tests=[BAYES_40=-0.185, HTML_MESSAGE=0.001, L_P0F_Unix=-1, RCVD_IN_DNSWL_LOW=-1] X-Amavis-OS-Fingerprint: Solaris 9, (distance 15, link: ethernet/modem), [147.11.1.11] Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3aV01+jCnuRe for ; Wed, 31 Dec 2008 22:20:56 +0000 (GMT) Received: from mail.wrs.com (mail.windriver.com [147.11.1.11]) by menubar.gnome.org (Postfix) with ESMTP id 891DB750065 for ; Wed, 31 Dec 2008 22:20:56 +0000 (GMT) Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.wrs.com (8.13.6/8.13.6) with ESMTP id mBVMKqOZ023893 for ; Wed, 31 Dec 2008 14:20:52 -0800 (PST) Received: from ala-mail02.corp.ad.wrs.com ([147.11.57.56]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 31 Dec 2008 14:20:52 -0800 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C96B96.0A7975AA" X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Wed, 31 Dec 2008 14:20:52 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Which window is on top? Thread-Index: Aclri4xEh1ZBPArzRCW7+zyLigifSw== From: "Quiring, Sam" To: X-OriginalArrivalTime: 31 Dec 2008 22:20:52.0906 (UTC) FILETIME=[0AE8B8A0:01C96B96] Subject: [g-a-devel] Which window is on top? X-BeenThere: gnome-accessibility-devel@gnome.org X-Mailman-Version: 2.1.10 Precedence: list List-Id: "Technical discussions and patches for at-spi, gail, and ATs" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2008 22:21:03 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C96B96.0A7975AA Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Greetings, =20 I have multiple apps running with windows layered on top of windows. The user moves the mouse to a point that, as you drill down, is in multiple different windows. I cannot find a way to figure out what window is on top nor the zorder relationship of the windows. Every GUI item on every window, regardless if it is totally obscured, partially visible, or totally visible shows up as STATE_VISIBLE and STATE_SHOWING. Once my app finds the innermost object containing the mouse it displays the complete parent tree. Every parent is also STATE_VISIBLE and STATE_SHOWING. I've tried Accessible_getMDIZOrder, but it returns 0 all the time except for two cases of icons on the desktop. =20 If two windows cover the same pixel on the desktop, how can I figure out which one is higher in the zorder and which is lower? If I've overlooked something really obvious, I apologize. =20 -Sam =20 PS: Just in case Accessible_getMDIZOrder is supposed to be the answer, here's my code that almost always returns 0: =20 short getZOrder(Accessible *accessibleObject) { if(Accessible_isComponent(accessibleObject)) { AccessibleComponent *aComponent =3D Accessible_getComponent(accessibleObject); short zo =3D AccessibleComponent_getMDIZOrder(aComponent); AccessibleComponent_unref(aComponent); return zo; } return -2; // for applications } ------_=_NextPart_001_01C96B96.0A7975AA Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Greetings,
 
I have = multiple apps=20 running with windows layered on top of windows.  The user moves the = mouse=20 to a point that, as you drill down, is in multiple different = windows. =20 I cannot find a way to figure out what window is on top nor the zorder=20 relationship of the windows.  Every GUI item on every window, = regardless if=20 it is totally obscured, partially visible, or totally visible shows up = as=20 STATE_VISIBLE and STATE_SHOWING.  Once my app finds the innermost = object=20 containing the mouse it displays the complete parent tree.  Every = parent is=20 also STATE_VISIBLE and STATE_SHOWING.  I've tried = Accessible_getMDIZOrder,=20 but it returns 0 all the time except for two cases of icons on = the=20 desktop.
 
If two = windows cover=20 the same pixel on the desktop, how can I figure out which one is higher = in the=20 zorder and which is lower?  If I've overlooked something really = obvious, I=20 apologize.
 
-Sam
 
PS: = Just in case=20 Accessible_getMDIZOrder is supposed to be the answer, here's my code = that almost=20 always returns 0:
 
short=20 getZOrder(Accessible *accessibleObject)
{
   =20 if(Accessible_isComponent(accessibleObject))=20 {
        AccessibleComponent = *aComponent=20 =3D =20 Accessible_getComponent(accessibleObject);
    &nb= sp;  =20 short zo =3D=20 AccessibleComponent_getMDIZOrder(aComponent);
    =    =20 AccessibleComponent_unref(aComponent);
     &= nbsp; =20 return zo;
    }
    return = -2;  // for=20 applications
}
------_=_NextPart_001_01C96B96.0A7975AA--