Commit e68d749a authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

don't allow copy and paste at the same time, fixed exit codes.

2005-05-19  Michael Natterer  <mitch@gimp.org>

	* tools/test-clipboard.c: don't allow copy and paste at the same
	time, fixed exit codes.
parent da5d25a2
2005-05-19 Michael Natterer <mitch@gimp.org>
* tools/test-clipboard.c: don't allow copy and paste at the same
time, fixed exit codes.
2005-05-19 Michael Natterer <mitch@gimp.org>
* plug-ins/dbbrowser/Makefile.am
......
......@@ -107,10 +107,19 @@ main (gint argc,
return EXIT_SUCCESS;
}
if (copy_filename && paste_filename)
{
g_printerr ("Can't copy and paste at the same time\n");
return EXIT_FAILURE;
}
if (copy_filename)
{
if (! target)
g_printerr ("Usage: %s -t <target> -c <file>\n", argv[0]);
{
g_printerr ("Usage: %s -t <target> -c <file>\n", argv[0]);
return EXIT_FAILURE;
}
test_clipboard_copy (clipboard, target, copy_filename);
return EXIT_SUCCESS;
......@@ -119,10 +128,13 @@ main (gint argc,
if (paste_filename)
{
if (! target)
g_printerr ("Usage: %s -t <target> -p <file>\n", argv[0]);
{
g_printerr ("Usage: %s -t <target> -p <file>\n", argv[0]);
return EXIT_FAILURE;
}
test_clipboard_paste (clipboard, target, paste_filename);
return EXIT_FAILURE;
return EXIT_SUCCESS;
}
return EXIT_SUCCESS;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment