diff options
author | Mike Newman <MikeGTN@src.gnome.org> | 2003-06-07 14:41:56 +0000 |
---|---|---|
committer | Mike Newman <MikeGTN@src.gnome.org> | 2003-06-07 14:41:56 +0000 |
commit | 5bade6fe6a14cce50508ee5d510a4560ebe3e421 (patch) | |
tree | 35710759f2f1c24923983e246cb86e57b014995d /src/about.c | |
parent | 3aab6a19a521c0374ef4c83fd7877154ea8636b5 (diff) |
Support user-defined return values via env vars, like dialog did.
Diffstat (limited to 'src/about.c')
-rw-r--r-- | src/about.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/about.c b/src/about.c index ddc3325..e00cbce 100644 --- a/src/about.c +++ b/src/about.c @@ -257,7 +257,7 @@ zenity_about (ZenityData *data) glade_dialog = zenity_util_load_glade_file ("zenity_about_dialog"); if (glade_dialog == NULL) { - data->exit_code = -1; + data->exit_code = zenity_util_return_exit_code (ZENITY_ERROR); return; } @@ -434,7 +434,7 @@ zenity_about_dialog_response (GtkWidget *widget, int response, gpointer data) switch (response) { case GTK_RESPONSE_OK: - zen_data->exit_code = 0; + zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK); gtk_main_quit (); break; @@ -448,7 +448,7 @@ zenity_about_dialog_response (GtkWidget *widget, int response, gpointer data) default: /* Esc dialog */ - zen_data->exit_code = 1; + zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC); break; } } |