Root/pygame/patches/020-scrup-stub.patch

1--- a/src/scrap.c
2+++ b/src/scrap.c
3@@ -70,7 +70,7 @@ static uint32_t _cliptype = 0;
4     #define MAC_SCRAP
5     #include "scrap_mac.c"
6 #else
7- #error Unknown window manager for clipboard handling
8+ #include "scrap_stub.c"
9 #endif /* scrap type */
10 
11 /**
12--- /dev/null
13+++ b/src/scrap_stub.c
14@@ -0,0 +1,54 @@
15+/*
16+ pygame - Python Game Library
17+
18+ This library is free software; you can redistribute it and/or
19+ modify it under the terms of the GNU Library General Public
20+ License as published by the Free Software Foundation; either
21+ version 2 of the License, or (at your option) any later version.
22+
23+ This library is distributed in the hope that it will be useful,
24+ but WITHOUT ANY WARRANTY; without even the implied warranty of
25+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26+ Library General Public License for more details.
27+
28+ You should have received a copy of the GNU Library General Public
29+ License along with this library; if not, write to the Free
30+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31+*/
32+
33+
34+int
35+pygame_scrap_init (void)
36+{
37+ return 1;
38+}
39+
40+int
41+pygame_scrap_lost (void)
42+{
43+ return 0;
44+}
45+
46+int
47+pygame_scrap_put (char *type, int srclen, char *src)
48+{
49+ return 1;
50+}
51+
52+char*
53+pygame_scrap_get (char *type, unsigned long *count)
54+{
55+ return NULL;
56+}
57+
58+int
59+pygame_scrap_contains (char *type)
60+{
61+ return 0;
62+}
63+
64+char**
65+pygame_scrap_get_types (void)
66+{
67+ return NULL;
68+}
69

Archive Download this file



interactive