app/errors.c (gimp_eek) app/main.c (main) (gimp_text_console_exit) call

2003-10-10  Sven Neumann  <sven@gimp.org>

	* app/errors.c (gimp_eek)
	* app/main.c (main) (gimp_text_console_exit)
	* app/gui/user-install-dialog.c (user_install_cancel_callback):
	call exit() with EXIT_SUCCESS or EXIT_FAILURE instead of 0 and 1.
This commit is contained in:
Sven Neumann 2003-10-10 10:02:34 +00:00 committed by Sven Neumann
parent b218186760
commit 4591aed0b4
5 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,10 @@
2003-10-10 Sven Neumann <sven@gimp.org>
* app/errors.c (gimp_eek)
* app/main.c (main) (gimp_text_console_exit)
* app/gui/user-install-dialog.c (user_install_cancel_callback):
call exit() with EXIT_SUCCESS or EXIT_FAILURE instead of 0 and 1.
2003-10-10 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpcontainertreeview-dnd.c: added auto-scrolling

View File

@ -428,7 +428,7 @@ user_install_cancel_callback (GtkWidget *widget,
static guint timeout_id = 0;
if (timeout_id)
exit (0);
exit (EXIT_SUCCESS);
gtk_widget_destroy (continue_button);
user_install_notebook_set_page (GTK_NOTEBOOK (notebook), EEK_PAGE);

View File

@ -167,9 +167,10 @@ gimp_eek (const gchar *reason,
/* g_on_error_* don't do anything reasonable on Win32. */
MessageBox (NULL, g_strdup_printf ("%s: %s", reason, message), full_prog_name, MB_OK|MB_ICONERROR);
MessageBox (NULL, g_strdup_printf ("%s: %s", reason, message),
full_prog_name, MB_OK|MB_ICONERROR);
#endif /* ! G_OS_WIN32 */
exit (1);
exit (EXIT_FAILURE);
}

View File

@ -428,7 +428,7 @@ user_install_cancel_callback (GtkWidget *widget,
static guint timeout_id = 0;
if (timeout_id)
exit (0);
exit (EXIT_SUCCESS);
gtk_widget_destroy (continue_button);
user_install_notebook_set_page (GTK_NOTEBOOK (notebook), EEK_PAGE);

View File

@ -400,7 +400,7 @@ main (int argc,
stack_trace_mode,
restore_session);
return 0;
return EXIT_SUCCESS;
}
@ -456,7 +456,8 @@ gimp_text_console_exit (gboolean fail)
Sleep(10000);
}
#endif
exit (fail ? 1 : 0);
exit (fail ? EXIT_FAILURE : EXIT_SUCCESS);
}