summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-biology/cluster/files/cluster-1.36-helpmenu-fix.patch')
-rw-r--r--sci-biology/cluster/files/cluster-1.36-helpmenu-fix.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/sci-biology/cluster/files/cluster-1.36-helpmenu-fix.patch b/sci-biology/cluster/files/cluster-1.36-helpmenu-fix.patch
new file mode 100644
index 0000000..69f3a96
--- /dev/null
+++ b/sci-biology/cluster/files/cluster-1.36-helpmenu-fix.patch
@@ -0,0 +1,30 @@
+--- X11/gui.c 2007-05-05 00:21:30.000000000 -0500
++++ X11/gui.c-new 2007-08-09 04:25:53.000000000 -0500
+@@ -1786,15 +1786,15 @@
+ { int item_no = (int) client_data;
+ switch (item_no)
+ { case CMD_HELP_HTMLHELP:
+- { system("netscape "PREFIX"/cluster/html/index.html &");
++ { system("xdg-open "PREFIX"/share/doc/cluster-1.36/html/index.html &");
+ break;
+ }
+ case CMD_HELP_MANUAL:
+- { system("acroread "PREFIX"/cluster/doc/cluster3.pdf &");
++ { system("xpdf "PREFIX"/share/doc/cluster-1.36/cluster3.pdf &");
+ break;
+ }
+ case CMD_HELP_DOWNLOAD:
+- { system("netscape http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/software/cluster/manual/index.html &");
++ { system("xdg-open http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/software/cluster/manual/index.html &");
+ break;
+ }
+ case CMD_HELP_FILEFORMAT:
+@@ -1852,7 +1852,7 @@
+ XtManageChild(widget);
+ free(helptext);
+ n = 0;
+- pixmap = XmGetPixmap(XtScreen(dialog),PREFIX"/cluster/format.xpm",0,0);
++ pixmap = XmGetPixmap(XtScreen(dialog),PREFIX"/share/doc/cluster-1.36/format.xpm",0,0);
+ XtSetArg(args[n], XmNx, 10); n++;
+ XtSetArg(args[n], XmNy, 410); n++;
+ XtSetArg(args[n],XmNlabelType, XmPIXMAP); n++;