aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/xpostit/files
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-05-06 19:45:42 +0800
committerjoerg <joerg@FreeBSD.org>1996-05-06 19:45:42 +0800
commitdbe8d85385ebcab8f34dfd2a842d419ace7c5d56 (patch)
tree148f40e3c8b43a6229533b0e427550f200deb14c /deskutils/xpostit/files
parentea250bf4600bb70e81b165ba424320b1c496abbb (diff)
downloadfreebsd-ports-gnome-dbe8d85385ebcab8f34dfd2a842d419ace7c5d56.tar.gz
freebsd-ports-gnome-dbe8d85385ebcab8f34dfd2a842d419ace7c5d56.tar.zst
freebsd-ports-gnome-dbe8d85385ebcab8f34dfd2a842d419ace7c5d56.zip
XPostIt -- Stick small Post-it notes onto your X11 screen.
Diffstat (limited to 'deskutils/xpostit/files')
-rw-r--r--deskutils/xpostit/files/patch-aa40
1 files changed, 40 insertions, 0 deletions
diff --git a/deskutils/xpostit/files/patch-aa b/deskutils/xpostit/files/patch-aa
new file mode 100644
index 000000000000..3a45504b0389
--- /dev/null
+++ b/deskutils/xpostit/files/patch-aa
@@ -0,0 +1,40 @@
+--- 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);
+ }