diff options
author | Arx Cruz <arxcruz@src.gnome.org> | 2011-06-28 17:09:04 -0300 |
---|---|---|
committer | Arx Cruz <arxcruz@src.gnome.org> | 2011-06-28 17:18:32 -0300 |
commit | 5872558feef3727e3ff1bb2bf395dfc6bd896f74 (patch) | |
tree | fa788e9bed3d1368b905c1d09b787c27739bf2ec /src/zenity.h | |
parent | f6920e5a6da83027919f3637b63cf2558e67ca47 (diff) |
This change add a new functionality to text-info:
* Added a cancel button returning 1 if clicked
* Renamed the Close button to Ok, still returning 0 if clicked
* Added --ok-label=TEXT option to change the Ok button label
* Added --cancel-label=TEXT option to change the Cancel button label
* Added --checkbox=TEXT option to show an "I Agree and accept the terms" checkbox
If --checkbox is enabled, the Ok button will be disabled if the checkbox isn't checked.
Diffstat (limited to 'src/zenity.h')
-rw-r--r-- | src/zenity.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zenity.h b/src/zenity.h index e5c6f4c..fd744b6 100644 --- a/src/zenity.h +++ b/src/zenity.h @@ -107,6 +107,9 @@ typedef struct { gboolean no_wrap; gchar *font; GtkTextBuffer *buffer; + gchar *ok_label; + gchar *cancel_label; + gchar *checkbox; } ZenityTextData; typedef struct { |