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