diff options
author | Arx Cruz <arxcruz@gnome.org> | 2011-07-26 14:00:28 -0300 |
---|---|---|
committer | Arx Cruz <arxcruz@gnome.org> | 2011-07-26 14:02:45 -0300 |
commit | 6768a40e997697d05008aecdb41815e1dbae61c6 (patch) | |
tree | 787c080cb8b3a81af70d2bb7d9c3847529e9a5f1 /src/password.c | |
parent | Bug #592195. This fix made the --list mode return as soon as receive an ok or... (diff) | |
download | zenity-6768a40e997697d05008aecdb41815e1dbae61c6.tar.gz zenity-6768a40e997697d05008aecdb41815e1dbae61c6.tar.bz2 zenity-6768a40e997697d05008aecdb41815e1dbae61c6.zip |
Fix for bug #611297 Now Zenity have --ok-label and --cancel-label in all dialogs. This patch doesn't break old zenity scripts.
Diffstat (limited to 'src/password.c')
-rw-r--r-- | src/password.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/password.c b/src/password.c index c49b6752..b656d8fc 100644 --- a/src/password.c +++ b/src/password.c @@ -45,10 +45,10 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data dialog = gtk_dialog_new (); gtk_dialog_add_button(GTK_DIALOG(dialog), - GTK_STOCK_CANCEL, + data->cancel_label != NULL ? data->cancel_label : GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); gtk_dialog_add_button(GTK_DIALOG(dialog), - GTK_STOCK_OK, + data->ok_label != NULL ? data->ok_label : GTK_STOCK_OK, GTK_RESPONSE_OK); image = gtk_image_new_from_stock(GTK_STOCK_DIALOG_AUTHENTICATION, |