summaryrefslogtreecommitdiff
path: root/x11/wmessage/patches
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>1999-10-06 06:07:22 +0000
committerjlam <jlam@pkgsrc.org>1999-10-06 06:07:22 +0000
commit910902fabdc2dfaf36cf97075cffbada430557ff (patch)
tree608c10b393d464309f27323a53481623aac7d1c2 /x11/wmessage/patches
parent4b115cfdb0012b518f8a4539f57505f1a3844d69 (diff)
downloadpkgsrc-910902fabdc2dfaf36cf97075cffbada430557ff.tar.gz
The API for WINGs changed, but this little app hasn't caught up yet.
Patch so it can link correctly.
Diffstat (limited to 'x11/wmessage/patches')
-rw-r--r--x11/wmessage/patches/patch-aa14
-rw-r--r--x11/wmessage/patches/patch-ab31
2 files changed, 39 insertions, 6 deletions
diff --git a/x11/wmessage/patches/patch-aa b/x11/wmessage/patches/patch-aa
index e825e7c6db7..18d82fb249f 100644
--- a/x11/wmessage/patches/patch-aa
+++ b/x11/wmessage/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.1.1.1 1999/08/26 11:32:28 jlam Exp $
+$NetBSD: patch-aa,v 1.2 1999/10/06 06:07:24 jlam Exp $
---- Makefile.orig Wed Aug 25 22:08:08 1999
-+++ Makefile Thu Aug 26 07:21:46 1999
-@@ -1,7 +1,7 @@
+--- ./Makefile.orig Sun Aug 29 20:38:35 1999
++++ ./Makefile Thu Sep 30 06:27:09 1999
+@@ -1,19 +1,18 @@
-PREFIX = /usr/local
+#PREFIX = /usr/local
@@ -10,9 +10,11 @@ $NetBSD: patch-aa,v 1.1.1.1 1999/08/26 11:32:28 jlam Exp $
-LDFLAGS = `get-wraster-flags --ldflags`
+LDFLAGS += `get-wraster-flags --ldflags`
LIBS = `get-wraster-flags --libs`
- CC = gcc
+-CC = gcc
++#CC = gcc
+
+ all: wmessage
-@@ -10,10 +10,9 @@
wmessage: wmessage.o panel.o
$(CC) -o wmessage wmessage.o panel.o \
$(CFLAGS) $(LDFLAGS) $(LIBS) -lWMaker -lWINGs -lPropList
diff --git a/x11/wmessage/patches/patch-ab b/x11/wmessage/patches/patch-ab
new file mode 100644
index 00000000000..076e05414ea
--- /dev/null
+++ b/x11/wmessage/patches/patch-ab
@@ -0,0 +1,31 @@
+$NetBSD: patch-ab,v 1.1 1999/10/06 06:07:24 jlam Exp $
+
+--- ./panel.c.orig Sun Aug 29 20:28:35 1999
++++ ./panel.c Wed Oct 6 01:56:48 1999
+@@ -128,7 +128,7 @@
+ return (-2);
+
+ if (settings->centre == True) {
+- WMSetWindowUPosition (panel->win,
++ WMSetWindowInitialPosition (panel->win,
+ (WidthOfScreen (DefaultScreenOfDisplay (settings->dpy)) - WMWidgetWidth(panel->win))/2,
+ (HeightOfScreen (DefaultScreenOfDisplay (settings->dpy)) - WMWidgetHeight(panel->win))/2);
+
+@@ -136,7 +136,7 @@
+ (WidthOfScreen (DefaultScreenOfDisplay (settings->dpy)) - WMWidgetWidth(panel->win))/2,
+ (HeightOfScreen (DefaultScreenOfDisplay (settings->dpy)) - WMWidgetHeight(panel->win))/2);
+
+- WMSetWindowUSize (panel->win, WMWidgetWidth (panel->win), WMWidgetHeight (panel->win));
++ WMSetWindowInitialSize (panel->win, WMWidgetWidth (panel->win), WMWidgetHeight (panel->win));
+ } else if (settings->nearmouse == True) {
+ int x, y, x2, y2;
+ unsigned int mask;
+@@ -144,7 +144,7 @@
+
+ XQueryPointer (settings->dpy, DefaultRootWindow (settings->dpy), &root, &child, &x, &y, &x2, &y2, &mask);
+
+- WMSetWindowUPosition (panel->win, x - (WMWidgetWidth(panel->win)/2), y - (WMWidgetHeight(panel->win)/2));
++ WMSetWindowInitialPosition (panel->win, x - (WMWidgetWidth(panel->win)/2), y - (WMWidgetHeight(panel->win)/2));
+ WMMoveWidget (panel->win, x - (WMWidgetWidth(panel->win)/2), y - (WMWidgetHeight(panel->win)/2));
+ }
+