GNOME Bugzilla – Bug 575319
Problems with GtkAssistant accessibility
Last modified: 2009-05-29 17:34:25 UTC
I may be misunderstanding something. Please correct me if so. I can't get GtkAssistant and ldtp to play nice. Namely, I don't get the expected results when running 'getobjectlist' on an Assistant. I've attached a test case. It's in vala and you can run "valac assist.vala --pkg gtk+-2.0" to compile. I've also attached the generated C code if that's easier. After running the test case (and optionally pressing 'Apply' in the dialog), I run the following in a different console: python -c 'import ldtp; print ldtp.getobjectlist("frmAssist")' I get the following reply: [u'btnLast', u'frmAssist', u'btnForward', u'btnClose', u'lblSetup1', u'flr0', u'btnCancel', u'btnBack', u'lblSetup', u'btnApply'] I don't know what lblSetup1 is supposed to be. I'm surprised I don't see 'lblSummary', 'lblsetuplabel', or 'lblsummarylabel'. Why don't I? (See the test case to know what I mean.)
Created attachment 130624 [details] vala test case
Created attachment 130625 [details] C test case
Created attachment 130626 [details] C test case header
(In reply to comment #0) > I may be misunderstanding something. Please correct me if so. I can't get > GtkAssistant and ldtp to play nice. > > Namely, I don't get the expected results when running 'getobjectlist' on an > Assistant. > > I've attached a test case. It's in vala and you can run "valac assist.vala > --pkg gtk+-2.0" to compile. I've also attached the generated C code if that's > easier. Thanks for the detailed info :) > > After running the test case (and optionally pressing 'Apply' in the dialog), I > run the following in a different console: > > python -c 'import ldtp; print ldtp.getobjectlist("frmAssist")' > > I get the following reply: > > [u'btnLast', u'frmAssist', u'btnForward', u'btnClose', u'lblSetup1', u'flr0', > u'btnCancel', u'btnBack', u'lblSetup', u'btnApply'] > > I don't know what lblSetup1 is supposed to be. I'm surprised I don't see > 'lblSummary', 'lblsetuplabel', or 'lblsummarylabel'. Why don't I? (See the > test case to know what I mean.) > When I tried with accerciser application, I notice the list only generated by LDTP. No additional information. We may need to involve some one from valac team to debug this issue. For sure, this is not a LDTP bug :) Thanks
Definitely not a vala bug. I just attached the vala source because it was quicker for me to mock it up that way. But really, the source is small. A cleaned-up, C-only test case is coming shortly, to assuage any fears that it has something to do with vala. I also see the same results with accerciser, so yeah, I guess it's not a ldtp bug either. I'm switching this bug to GTK+... Is it possible GtkAssistant just doesn't expose the widgets correctly via AT-SPI?
Created attachment 130747 [details] Cleaned-up C test case Compile with "gcc `pkg-config --cflags --libs gtk+-2.0` assist.c -o assist"
Switching to 'atk' product; I thought that was under the gtk+ umbrella, but guess not.
Created attachment 135549 [details] [review] Proposed patch Hey Terry. Please try this, let me know if it solves all or some of the symptoms. Also, for the record, could you use accerciser and list the exact issues you encountered? The LDTP diagnosis above is a bit hard to read.
Oh, glorious days; that fixed it! Thank you! Noted about accerciser.
Excellent! Could someone please commit this?
Please commit to master and gtk-2-16
Thanks Matthias, Committed to master and gtk-2-16