summaryrefslogtreecommitdiff
path: root/x11/xpostit/patches
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-04-03 08:16:14 +0000
committeragc <agc@pkgsrc.org>2001-04-03 08:16:14 +0000
commit1ffee6654bcf2e70eccb76e6abecec01d6b4c898 (patch)
tree2877cb723698cb85d6f82ceb9ea6573a661bf083 /x11/xpostit/patches
parent259c0b93588d1c83b31b5eb162dad062fc0263a9 (diff)
downloadpkgsrc-1ffee6654bcf2e70eccb76e6abecec01d6b4c898.tar.gz
Initial import of xpostit version 3.3.1 into the packages collection.
"XPostIt allows you to create small notes to yourself in windows on the screen, and save them in disk files. This is generally neater than having numerous real Post-it notes stuck all around the edges of your monitor." Package submitted by Jim Bernard in PR 12532.
Diffstat (limited to 'x11/xpostit/patches')
-rw-r--r--x11/xpostit/patches/patch-aa42
-rw-r--r--x11/xpostit/patches/patch-ab12
2 files changed, 54 insertions, 0 deletions
diff --git a/x11/xpostit/patches/patch-aa b/x11/xpostit/patches/patch-aa
new file mode 100644
index 00000000000..d90d55a4791
--- /dev/null
+++ b/x11/xpostit/patches/patch-aa
@@ -0,0 +1,42 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/04/03 08:16:14 agc Exp $
+
+--- plaid.c.orig Thu Dec 10 09:40:26 1992
++++ plaid.c
+@@ -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);
+ }
diff --git a/x11/xpostit/patches/patch-ab b/x11/xpostit/patches/patch-ab
new file mode 100644
index 00000000000..3a7757a15bb
--- /dev/null
+++ b/x11/xpostit/patches/patch-ab
@@ -0,0 +1,12 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/04/03 08:16:14 agc Exp $
+
+--- xpostit.c.orig Thu Dec 10 09:40:27 1992
++++ xpostit.c
+@@ -121,7 +121,6 @@
+ {
+ Arg args[4];
+ char *appname;
+- char *rindex();
+ Atom protos[2];
+ register int nargs;
+ Boolean setsigs = False;