Browse files

change Dialog sample to use standard OK label instead of "Submit"

  • Loading branch information...
1 parent 03ef8e7 commit 2b5c152030f5e83bae7cbbb8a1588b6cdda6d7c7 @jhoffmannrim jhoffmannrim committed Nov 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 Dialog/main.c
View
4 Dialog/main.c
@@ -87,7 +87,7 @@ setup_screen()
}
/**
- * Show an alert dialog that has two buttons: a "Cancel" button, and a "Submit" button.
+ * Show an alert dialog that has two buttons: a "Cancel" button, and a "OK" button.
*/
static void
show_alert()
@@ -126,7 +126,7 @@ show_alert()
/*
* Use a button label of our own. Don't attach a context to the button.
*/
- if (dialog_add_button(alert_dialog, "Submit", true, 0, true) != BPS_SUCCESS) {
+ if (dialog_add_button(alert_dialog, DIALOG_OK_LABEL, true, 0, true) != BPS_SUCCESS) {
fprintf(stderr, "Failed to add button to alert dialog.");
dialog_destroy(alert_dialog);
alert_dialog = 0;

0 comments on commit 2b5c152

Please sign in to comment.