summaryrefslogtreecommitdiff
path: root/src/zenity.h
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@src.gnome.org>2011-06-28 17:09:04 -0300
committerArx Cruz <arxcruz@src.gnome.org>2011-06-28 17:18:32 -0300
commit5872558feef3727e3ff1bb2bf395dfc6bd896f74 (patch)
treefa788e9bed3d1368b905c1d09b787c27739bf2ec /src/zenity.h
parentUpdated Russian translation (diff)
downloadzenity-5872558feef3727e3ff1bb2bf395dfc6bd896f74.tar.gz
zenity-5872558feef3727e3ff1bb2bf395dfc6bd896f74.tar.bz2
zenity-5872558feef3727e3ff1bb2bf395dfc6bd896f74.zip
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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/zenity.h b/src/zenity.h
index e5c6f4cd..fd744b67 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 {
bgstack15