After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 138607 - double output from bottom panel window list buttons
double output from bottom panel window list buttons
Status: RESOLVED FIXED
Product: gnopernicus
Classification: Deprecated
Component: speech
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Dana Ormenisan
Dana Ormenisan
AP3
Depends on:
Blocks:
 
 
Reported: 2004-03-31 09:38 UTC by david.hawthorne
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
proposed patch to avoid this 'double output' (936 bytes, patch)
2004-04-02 14:12 UTC, Dana Ormenisan
none Details | Review
new proposed patch - this patch avoid the double output described in comment #10 (992 bytes, patch)
2004-06-14 13:53 UTC, Dana Ormenisan
none Details | Review

Description david.hawthorne 2004-03-31 09:38:48 UTC
using gnopernicus tarball 0.8.1-1

-launch gnopernicus
-launch gnome-terminal
-<ctrl-alt-tab> to bottom panel
-focus the 'terminal' window button on the panel

.gnopernicus outputs 'terminal, terminal, push-button...'

the same applies for other open windows.
Comment 1 Dana Ormenisan 2004-03-31 14:09:50 UTC
What presentation mode are you using ? Are you using default or verbose? (see
gnopernicus->2 Preferences...->7 Presentation).
Comment 2 david.hawthorne 2004-03-31 14:44:16 UTC
Ah. I'm using verbose and it does not happen when using default. Should this
happen however even with verbose?
Comment 3 Dana Ormenisan 2004-03-31 14:55:11 UTC
Using default presentation mode, gnopernicus outputs the name for a push button.

Using verbose, gnopernicus outputs both name and description for a push button.
In this case, the two information are identical (terminal...). Beacause of that,
this 'double output' occurs.
Comment 4 padraig.obriain 2004-03-31 15:09:59 UTC
Is the bug in libwnck in that the buttons should not have name and description
the same?
Comment 5 Dana Ormenisan 2004-03-31 15:32:02 UTC
I don't know, but I think name and description should be different. Why shold we
describe an object using its name ?
Comment 6 Dana Ormenisan 2004-04-02 14:08:35 UTC
I believe the only solution (in gnopernicus) for this problem is to check if
name and description are the same and, in this particular situation, to output
only the name (in verbose presentation mode).
Comment 7 Dana Ormenisan 2004-04-02 14:12:39 UTC
Created attachment 26255 [details] [review]
proposed patch to avoid this 'double output'
Comment 8 padraig.obriain 2004-04-02 14:18:03 UTC
I was hoping that Bill or Peter would comment on whether it is a bug for an
object to report its name and description as the same.
Comment 9 padraig.obriain 2004-04-02 15:51:46 UTC
The problem here is that the accessible description is the tooltip and the
tooltip for the tasklist button is the same as the text on the button.

Avoiding the double output in gnopernicus looks like the best approach.
Comment 10 Dana Ormenisan 2004-06-14 07:49:35 UTC
The previous patch avoid the double output if the button has an accessible name
and a description and both are the same.  
But if the button doesn't have an accessible name the double output is still
present: in this situation (if no name) the description is presented as a name
for this object.

What decision should we take here: avoid the double output in gnopernicus (by
applying this patch) and file bugs against <no name> objects? Or require a
different name an description for an object?

Please comment !
Comment 11 bill.haneman 2004-06-14 09:30:47 UTC
I would do something a bit different: I would avoid the double output by:

* not substituting "description" to obtain "accessible-name"
* speaking the "description" instead of "name" in cases where no name is present,
  _but_ only apply this login in the presentation layer, i.e. if we're not
  speaking the description already.

i.e.
if (say_description)
       present_to_user (name, description, etc.)
else if (name)
       present_to_user (name, etc.)
else
       present_to_user (description, etc.)
Comment 12 Dana Ormenisan 2004-06-14 13:53:33 UTC
Created attachment 28691 [details] [review]
new proposed patch - this patch avoid the double output described in comment #10

In default presentation mode gnopernicus doesn't output the description, only
the name. In this case, if the button doesn't have an accessible name, the
output will be only 'push button'. This is the reason why the description is
presented as a name in this situation.

The solution to avoid the double output without any major changes is:
   if (no name)
	  the description will be presented as a name	 
	  present_to_user (name, etc.)
   else if (name == description)
	  present_to_user (name, etc.)
   else
	  present_to_user (name, description, etc.)

 Are you agree with this changes ?
Comment 13 korn 2004-06-15 21:10:09 UTC
I agree with your logic Dana, though I would use "description voice" if there is
one rather than "name voice" (e.g. don't present the description *as* the name;
don't hide from the user the info that this is the descriptoin).  I haven't
checked your code...
Comment 14 Dana Ormenisan 2004-06-16 07:02:04 UTC
There are two different functions: one which returns the name and another one
for the description. If <no name>, the description is returned by the function
which should return the name. This is because in default presentation file we
have only one entry : 'present <name> using 'name' voice'. This is the reason
why, in this case, the description is presented with 'name' voice. 
Comment 15 Dana Ormenisan 2004-07-12 14:30:31 UTC
Fixies in CVS