gimp r27177 - in trunk: . tools
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27177 - in trunk: . tools
- Date: Wed, 8 Oct 2008 18:43:14 +0000 (UTC)
Author: mitch
Date: Wed Oct 8 18:43:14 2008
New Revision: 27177
URL: http://svn.gnome.org/viewvc/gimp?rev=27177&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/tools/test-clipboard.c
Modified: trunk/tools/test-clipboard.c
==============================================================================
--- trunk/tools/test-clipboard.c (original)
+++ trunk/tools/test-clipboard.c Wed Oct 8 18:43:14 2008
@@ -368,7 +368,10 @@
{
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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]