GNOME Bugzilla – Bug 118016
"EXTRA" Button
Last modified: 2015-04-21 11:08:53 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).
test
Created attachment 48366 [details] [review] Implements --extra-button --extra-label='hello' kind of syntax for all dialogs
Created attachment 48367 [details] Test Case for extra-buttons patch.
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
Thanks for the patch, applied on master.