zenity --question --timeout returns 5 when click yes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zenity (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The man page says:
"For example, zenity --question will return either 0, 1 or 5, depending on whether the user pressed OK, Cancel or timeout has been reached. zenity --entry will output on standard output what the user typed into the text entry field."
however, for the following
$ zenity --question --title="Title" --text="Click yes" --timeout=6
$ echo $?
5
one can see that zenity returns 5 instead of 0 if you click the Yes (OK) button.
Without --timeout, zenity returns 0 when you click Yes.
The man page also is incorrect because the buttons are labeled No and Yes (in that order, left to right),
not OK or Cancel.
Also, pressing ESC is typically equivalent to canceling a dialog, but in the latter case, zenity returns 0
(as if I had selected Yes) instead of 0 (No/Cancel)
See also http://<email address hidden>
I also get 5 when choosing OK, but (correctly) get 1 when pressing ESC or canceling with Xubuntu 12.04. In earlier Xubuntu versions it was correct.