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 118016 - "EXTRA" Button
"EXTRA" Button
Status: RESOLVED FIXED
Product: zenity
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Zenity Maintainers
Zenity Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-07-21 19:12 UTC by Kevin C. Krinke
Modified: 2015-04-21 11:08 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Implements --extra-button --extra-label='hello' kind of syntax for all dialogs (9.50 KB, patch)
2005-06-26 17:36 UTC, Muthiah Annamalai
none Details | Review
Test Case for extra-buttons patch. (168 bytes, text/plain)
2005-06-26 17:37 UTC, Muthiah Annamalai
  Details
Multiple Extra buttons (18.92 KB, patch)
2015-02-28 19:43 UTC, Gama Anderson
none Details | Review

Description Kevin C. Krinke 2003-07-21 19:12:35 UTC
KCK's wishlist #5:

 I'd like to have an additional (optional) argument to any Zenity widget:
 --extra-button. This would add another button along side the "OK" button
 called "EXTRA" and when pressed closes the widget with an exit value of 3.
 This button is only really usefull in combination with my "Button Labels"
 (Wishlist #4) suggestion (#118015).
Comment 1 Glynn Foster 2003-11-06 20:18:32 UTC
test
Comment 2 Muthiah Annamalai 2005-06-26 17:36:35 UTC
Created attachment 48366 [details] [review]
Implements --extra-button --extra-label='hello' kind of syntax for all dialogs
Comment 3 Muthiah Annamalai 2005-06-26 17:37:10 UTC
Created attachment 48367 [details]
Test Case for extra-buttons patch.
Comment 4 Gama Anderson 2015-02-28 19:43:22 UTC
Created attachment 298186 [details] [review]
Multiple Extra buttons

I had the same ideia, but allowing multiple extra-buttons, also add the option --switch to question in order to supress the "ok" and "cancel" buttons.

exemple:
zenity --question --switch --text="Chosse from A, B or C" --extra-button=A --extra-button=B --extra-button=C

P.S. this is not an extension to the previous patch, but done direct from the original source
Comment 5 Arx Cruz 2015-04-21 11:08:53 UTC
Thanks for the patch, applied on master.