Lines 1-6
Link Here
|
1 |
--- xcoloredit.c.orig Wed May 30 22:10:09 2007 |
1 |
--- xcoloredit.c.orig Wed May 30 22:10:09 2007 |
2 |
+++ xcoloredit.c Wed May 30 22:10:57 2007 |
2 |
+++ xcoloredit.c Wed May 30 22:10:57 2007 |
3 |
@@ -85,6 +85,7 @@ |
3 |
@@ -38,6 +38,7 @@ |
|
|
4 |
*/ |
5 |
|
6 |
#include <stdio.h> |
7 |
+#include <stdlib.h> |
8 |
#include <X11/Xatom.h> |
9 |
#include <X11/X.h> |
10 |
#include <X11/Intrinsic.h> |
11 |
@@ -50,6 +51,7 @@ |
12 |
#include <X11/Xaw/Form.h> |
13 |
#include <X11/Xaw/Box.h> |
14 |
#include <X11/Xmu/Atoms.h> |
15 |
+#include <X11/Xmu/StdSel.h> |
16 |
#include "Xcoloredit.h" |
17 |
#include "color.h" |
18 |
|
19 |
@@ -85,6 +87,7 @@ |
4 |
static void move_scroll(); |
20 |
static void move_scroll(); |
5 |
static void change_text_colour(); |
21 |
static void change_text_colour(); |
6 |
|
22 |
|
Lines 8-10
Link Here
|
8 |
|
24 |
|
9 |
#define MEMORY_OFFSET 8 |
25 |
#define MEMORY_OFFSET 8 |
10 |
#define NUM_MEMORIES 36 |
26 |
#define NUM_MEMORIES 36 |
|
|
27 |
@@ -182,8 +185,8 @@ |
28 |
#undef offset |
29 |
|
30 |
|
31 |
-void main(argc, argv) |
32 |
-unsigned int argc; |
33 |
+int main(argc, argv) |
34 |
+int argc; |
35 |
char **argv; |
36 |
{ |
37 |
Status ok; |
38 |
@@ -696,7 +699,7 @@ |
39 |
(float)0.025); |
40 |
XawScrollbarSetThumb(valScroll, (float)(1.0 - hsv_values.v), |
41 |
(float)0.025); |
42 |
-#endif SOLID_THUMB |
43 |
+#endif /* SOLID_THUMB */ |
44 |
} |
45 |
|
46 |
|
47 |
@@ -878,7 +881,7 @@ |
48 |
XawScrollbarSetThumb(w, top, (float)(1.0 - top)); |
49 |
#else |
50 |
XawScrollbarSetThumb(w, top, (float)0.025); |
51 |
-#endif SOLID_THUMB |
52 |
+#endif /* SOLID_THUMB */ |
53 |
|
54 |
do_change = FALSE; |
55 |
pass_value = 1.0 - rgb_values.r/65536.0; |
56 |
@@ -941,7 +944,7 @@ |
57 |
XawScrollbarSetThumb(w, top, (float)(1.0 - top)); |
58 |
#else |
59 |
XawScrollbarSetThumb(w, top, (float)0.025); |
60 |
-#endif SOLID_THUMB |
61 |
+#endif /* SOLID_THUMB */ |
62 |
move_lock(); |
63 |
} |
64 |
|
65 |
@@ -960,7 +963,7 @@ |
66 |
(float)(1.0 - locked_top)); |
67 |
#else |
68 |
XawScrollbarSetThumb(lockedScroll, locked_top, (float)0.025); |
69 |
-#endif SOLID_THUMB |
70 |
+#endif /* SOLID_THUMB */ |
71 |
} |
72 |
|
73 |
|
74 |
@@ -986,8 +989,8 @@ |
75 |
unsigned long *length; |
76 |
int *format; |
77 |
{ |
78 |
- if (XmuConvertStandardSelection(w, selection, target, type, value, |
79 |
- length, format)) |
80 |
+ if (XmuConvertStandardSelection(w, (Time)0, selection, target, type, |
81 |
+ (XPointer *)value, length, format)) |
82 |
return TRUE; |
83 |
|
84 |
if (*target == XA_STRING) { |