diff options
author | Lucas Rocha <lucasr@gnome.org> | 2008-03-29 22:13:50 +0000 |
---|---|---|
committer | Lucas Almeida Rocha <lucasr@src.gnome.org> | 2008-03-29 22:13:50 +0000 |
commit | 2141cb9184c20be91e469b2bd4e4bb22e57faba3 (patch) | |
tree | 365dfc58346aa5c3ed10b92b029d62fbd7e96b8d /src/zenity.h | |
parent | 23eb83f5bc97bb777b9612122a9ebd3cfd6f49c0 (diff) |
Allow question dialogs to use custom button label text (Fixes bug
2008-03-30 Lucas Rocha <lucasr@gnome.org>
Allow question dialogs to use custom button label text (Fixes
bug #335763). Patch from Cosimo Cecchi <anarki@lilik.it> and
Thomas Thurman <tthurman@gnome.org>.
* src/msg.c (zenity_msg_construct_question_dialog), (zenity_msg):
dynamically add dialog buttons with provided labels.
* src/option.c (zenity_option_free): free input labels.
(zenity_question_post_callback): set button labels provided by the
respective command line options.
* src/zenity.glade: remove pre-defined dialog button from question
dialog.
* src/zenity.h: added ok_label and cancel_label to ZenityMsgData.
svn path=/trunk/; revision=1346
Diffstat (limited to 'src/zenity.h')
-rw-r--r-- | src/zenity.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/zenity.h b/src/zenity.h index ac6c4f8..8865cd9 100644 --- a/src/zenity.h +++ b/src/zenity.h @@ -60,6 +60,8 @@ typedef struct { gchar *dialog_text; MsgMode mode; gboolean no_wrap; + gchar *ok_label; + gchar *cancel_label; } ZenityMsgData; typedef struct { |