summaryrefslogtreecommitdiff
path: root/deskutils/xpostit/files/patch-aa
blob: 2b82f94ea7d427d309367fface463c50eb6f07fc (plain) (blame)
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
--- plaid.c.orig	Thu Dec 10 17:40:26 1992
+++ plaid.c	Mon May  6 13:23:17 1996
@@ -60,6 +60,7 @@
 {
 	Arg args[4];
 	register int nargs;
+	Dimension width, height;
 
 	/*
 	 * Create the plaid widget.
@@ -78,20 +79,22 @@
 	 * Get the width and height of the widget.
 	 */
 	nargs = 0;
-	SetArg(XtNwidth, NULL);
-	SetArg(XtNheight, NULL);
+	SetArg(XtNwidth, &width);
+	SetArg(XtNheight, &height);
 	XtGetValues(plaidwidget, args, nargs);
 
 	/*
 	 * If the user didn't set them, then we
 	 * should set them to the defaults.
 	 */
-	if ((args[0].value == 0) || (args[1].value == 0)) {
-		if (args[0].value == 0)
-			XtSetArg(args[0], XtNwidth, DefaultPlaidWidth);
+	if (width == 0 || height == 0) {
+		nargs = 0;
 
-		if (args[1].value == 0)
-			XtSetArg(args[1], XtNheight, DefaultPlaidHeight);
+		if (width == 0)
+			SetArg(XtNwidth, DefaultPlaidWidth);
+
+		if (height == 0)
+			SetArg(XtNheight, DefaultPlaidHeight);
 
 		XtSetValues(plaidwidget, args, nargs);
 	}
--- ./xpostit.c.org	Thu Dec 10 08:40:27 1992
+++ ./xpostit.c	Thu Oct 31 21:31:14 1996
@@ -121,7 +121,6 @@
 {
 	Arg args[4];
 	char *appname;
-	char *rindex();
 	Atom protos[2];
 	register int nargs;
 	Boolean setsigs = False;