Public bug reported:

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://www.mail-archive.com/debian-bugs-
d...@lists.debian.org/msg1048592.html

** Affects: zenity (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1034594

Title:
  zenity --question --timeout returns 5 when click yes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zenity/+bug/1034594/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to