aboutsummaryrefslogtreecommitdiff
path: root/math/grace
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2010-06-05 19:29:56 +0000
committerMartin Wilke <miwi@FreeBSD.org>2010-06-05 19:29:56 +0000
commitc258a5dab46386425f291b3912e46221e93e6d47 (patch)
treecfef86ee6d312e067623f0633504da55d0d29bb9 /math/grace
parent8275099f125ec5233359800f6b0f4d611bc2e89c (diff)
downloadports-c258a5dab46386425f291b3912e46221e93e6d47.tar.gz
ports-c258a5dab46386425f291b3912e46221e93e6d47.zip
Notes
Diffstat (limited to 'math/grace')
-rw-r--r--math/grace/Makefile2
-rw-r--r--math/grace/files/patch-src-motifutils.c39
2 files changed, 40 insertions, 1 deletions
diff --git a/math/grace/Makefile b/math/grace/Makefile
index 7bd0a152d0e8..9e4dd2fa50a6 100644
--- a/math/grace/Makefile
+++ b/math/grace/Makefile
@@ -7,7 +7,7 @@
PORTNAME= grace
PORTVERSION= 5.1.22
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= math print
#
MASTER_SITES= ftp://plasma-gate.weizmann.ac.il/pub/grace/src/stable/ \
diff --git a/math/grace/files/patch-src-motifutils.c b/math/grace/files/patch-src-motifutils.c
new file mode 100644
index 000000000000..3e765ae3380e
--- /dev/null
+++ b/math/grace/files/patch-src-motifutils.c
@@ -0,0 +1,39 @@
+
+--- src/motifutils.c.orig 2010-03-15 20:05:12.742336241 -0700
++++ src/motifutils.c 2010-03-15 20:12:53.885346709 -0700
+@@ -118,7 +118,6 @@
+
+ extern unsigned long xvlibcolors[];
+
+-
+ static OptionItem *color_option_items = NULL;
+ static int ncolor_option_items = 0;
+ static OptionStructure **color_selectors = NULL;
+@@ -1621,6 +1620,12 @@
+ graph_popup_menu = xmalloc(sizeof(GraphPopupMenu));
+
+ popup = XmCreatePopupMenu(listp->list, "graphPopupMenu", NULL, 0);
++#if XmVersion >= 2000
++ XtVaSetValues(popup, XmNpopupEnabled, XmPOPUP_DISABLED, NULL);
++ XtUngrabButton(listp->list, AnyButton, AnyModifier);
++#else
++ XtVaSetValues(popup, XmNpopupEnabled, False, NULL);
++#endif
+ graph_popup_menu->popup = popup;
+
+ graph_popup_menu->label_item = CreateMenuLabel(popup, "Selection:");
+@@ -2243,6 +2248,12 @@
+
+ set_popup_menu = xmalloc(sizeof(SetPopupMenu));
+ popup = XmCreatePopupMenu(listp->list, "setPopupMenu", NULL, 0);
++#if XmVersion >= 2000
++ XtVaSetValues(popup, XmNpopupEnabled, XmPOPUP_DISABLED, NULL);
++ XtUngrabButton(listp->list, AnyButton, AnyModifier);
++#else
++ XtVaSetValues(popup, XmNpopupEnabled, False, NULL);
++#endif
+ set_popup_menu->popup = popup;
+
+ set_popup_menu->label_item = CreateMenuLabel(popup, "Selection:");
+
+