gimp r27177 - in trunk: . tools



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]