mirror of https://github.com/GNOME/gimp.git
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:
parent
c88595fd82
commit
905aa2e54a
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue