From 2141cb9184c20be91e469b2bd4e4bb22e57faba3 Mon Sep 17 00:00:00 2001 From: Lucas Rocha Date: Sat, 29 Mar 2008 22:13:50 +0000 Subject: Allow question dialogs to use custom button label text (Fixes bug 2008-03-30 Lucas Rocha Allow question dialogs to use custom button label text (Fixes bug #335763). Patch from Cosimo Cecchi and Thomas Thurman . * 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 --- src/zenity.glade | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) (limited to 'src/zenity.glade') diff --git a/src/zenity.glade b/src/zenity.glade index c496dcc..ffda0e8 100644 --- a/src/zenity.glade +++ b/src/zenity.glade @@ -242,6 +242,7 @@ True + True Are you sure you want to proceed? False True @@ -339,36 +340,9 @@ 14 - + True GTK_BUTTONBOX_END - - - - True - True - True - gtk-cancel - True - GTK_RELIEF_NORMAL - True - -6 - - - - - - True - True - True - True - gtk-ok - True - GTK_RELIEF_NORMAL - True - -5 - - 0 @@ -405,6 +379,7 @@ True + True Are you sure you want to proceed? False True @@ -872,6 +847,7 @@ True + True An error has occurred. False True @@ -1126,6 +1102,7 @@ True + True All updates are complete. False True -- cgit v1.2.3-54-g00ecf