Quick hack I needed for debugging and which doesn't hurt:

2008-10-08  Michael Natterer  <mitch@gimp.org>

	Quick hack I needed for debugging and which doesn't hurt:

	* tools/test-clipboard.c (test_clipboard_paste): allow to paste to
	STDOUT by passing '-' as filename.


svn path=/trunk/; revision=27177
This commit is contained in:
Michael Natterer 2008-10-08 18:43:14 +00:00 committed by Michael Natterer
parent c88595fd82
commit 905aa2e54a
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2008-10-08 Michael Natterer <mitch@gimp.org>
Quick hack I needed for debugging and which doesn't hurt:
* tools/test-clipboard.c (test_clipboard_paste): allow to paste to
STDOUT by passing '-' as filename.
2008-10-08 Martin Nordholts <martinn@svn.gnome.org>
* plug-ins/file-psd/psd-load.c (add_layers): Decrease scope of

View File

@ -368,7 +368,10 @@ test_clipboard_paste (GtkClipboard *clipboard,
{
gint fd;
fd = open (filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
if (! strcmp (filename, "-"))
fd = 1;
else
fd = open (filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
if (fd < 0)
{