From 236df94d605057ea0dbae7f9c1e3e952acc82289 Mon Sep 17 00:00:00 2001 From: sobomax Date: Wed, 8 Aug 2001 16:11:09 +0000 Subject: Add `w3m' and `gnome-help-browser' into the list of browsers that may be used to read AbiWord help files. --- .../patch-src::af::xap::unix::xap_UnixFrame.cpp | 26 ++++++++++++++++++++++ .../patch-src::af::xap::unix::xap_UnixFrame.cpp | 26 ++++++++++++++++++++++ .../patch-src::af::xap::unix::xap_UnixFrame.cpp | 26 ++++++++++++++++++++++ .../patch-src::af::xap::unix::xap_UnixFrame.cpp | 26 ++++++++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 editors/AbiWord/files/patch-src::af::xap::unix::xap_UnixFrame.cpp create mode 100644 editors/AbiWord2/files/patch-src::af::xap::unix::xap_UnixFrame.cpp create mode 100644 editors/abiword-devel/files/patch-src::af::xap::unix::xap_UnixFrame.cpp create mode 100644 editors/abiword/files/patch-src::af::xap::unix::xap_UnixFrame.cpp diff --git a/editors/AbiWord/files/patch-src::af::xap::unix::xap_UnixFrame.cpp b/editors/AbiWord/files/patch-src::af::xap::unix::xap_UnixFrame.cpp new file mode 100644 index 000000000000..9eea861c1a92 --- /dev/null +++ b/editors/AbiWord/files/patch-src::af::xap::unix::xap_UnixFrame.cpp @@ -0,0 +1,26 @@ + +$FreeBSD$ + +--- src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 15:59:48 1.1 ++++ src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 16:06:14 +@@ -767,9 +767,19 @@ + fmtstring = "khelpcenter %s &"; + execstring = g_strdup_printf(fmtstring, szURL); + } +- else ++ else if(progExists("gnome-help-browser")) ++ { ++ fmtstring = "gnome-help-browser %s &"; ++ execstring = g_strdup_printf(fmtstring, szURL); ++ } ++ else if(progExists("lynx")) + { + fmtstring = "xterm -e lynx %s &"; ++ execstring = g_strdup_printf(fmtstring, szURL); ++ } ++ else if(progExists("w3m")) ++ { ++ fmtstring = "xterm -e w3m %s &"; + execstring = g_strdup_printf(fmtstring, szURL); + } + diff --git a/editors/AbiWord2/files/patch-src::af::xap::unix::xap_UnixFrame.cpp b/editors/AbiWord2/files/patch-src::af::xap::unix::xap_UnixFrame.cpp new file mode 100644 index 000000000000..9eea861c1a92 --- /dev/null +++ b/editors/AbiWord2/files/patch-src::af::xap::unix::xap_UnixFrame.cpp @@ -0,0 +1,26 @@ + +$FreeBSD$ + +--- src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 15:59:48 1.1 ++++ src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 16:06:14 +@@ -767,9 +767,19 @@ + fmtstring = "khelpcenter %s &"; + execstring = g_strdup_printf(fmtstring, szURL); + } +- else ++ else if(progExists("gnome-help-browser")) ++ { ++ fmtstring = "gnome-help-browser %s &"; ++ execstring = g_strdup_printf(fmtstring, szURL); ++ } ++ else if(progExists("lynx")) + { + fmtstring = "xterm -e lynx %s &"; ++ execstring = g_strdup_printf(fmtstring, szURL); ++ } ++ else if(progExists("w3m")) ++ { ++ fmtstring = "xterm -e w3m %s &"; + execstring = g_strdup_printf(fmtstring, szURL); + } + diff --git a/editors/abiword-devel/files/patch-src::af::xap::unix::xap_UnixFrame.cpp b/editors/abiword-devel/files/patch-src::af::xap::unix::xap_UnixFrame.cpp new file mode 100644 index 000000000000..9eea861c1a92 --- /dev/null +++ b/editors/abiword-devel/files/patch-src::af::xap::unix::xap_UnixFrame.cpp @@ -0,0 +1,26 @@ + +$FreeBSD$ + +--- src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 15:59:48 1.1 ++++ src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 16:06:14 +@@ -767,9 +767,19 @@ + fmtstring = "khelpcenter %s &"; + execstring = g_strdup_printf(fmtstring, szURL); + } +- else ++ else if(progExists("gnome-help-browser")) ++ { ++ fmtstring = "gnome-help-browser %s &"; ++ execstring = g_strdup_printf(fmtstring, szURL); ++ } ++ else if(progExists("lynx")) + { + fmtstring = "xterm -e lynx %s &"; ++ execstring = g_strdup_printf(fmtstring, szURL); ++ } ++ else if(progExists("w3m")) ++ { ++ fmtstring = "xterm -e w3m %s &"; + execstring = g_strdup_printf(fmtstring, szURL); + } + diff --git a/editors/abiword/files/patch-src::af::xap::unix::xap_UnixFrame.cpp b/editors/abiword/files/patch-src::af::xap::unix::xap_UnixFrame.cpp new file mode 100644 index 000000000000..9eea861c1a92 --- /dev/null +++ b/editors/abiword/files/patch-src::af::xap::unix::xap_UnixFrame.cpp @@ -0,0 +1,26 @@ + +$FreeBSD$ + +--- src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 15:59:48 1.1 ++++ src/af/xap/unix/xap_UnixFrame.cpp 2001/08/08 16:06:14 +@@ -767,9 +767,19 @@ + fmtstring = "khelpcenter %s &"; + execstring = g_strdup_printf(fmtstring, szURL); + } +- else ++ else if(progExists("gnome-help-browser")) ++ { ++ fmtstring = "gnome-help-browser %s &"; ++ execstring = g_strdup_printf(fmtstring, szURL); ++ } ++ else if(progExists("lynx")) + { + fmtstring = "xterm -e lynx %s &"; ++ execstring = g_strdup_printf(fmtstring, szURL); ++ } ++ else if(progExists("w3m")) ++ { ++ fmtstring = "xterm -e w3m %s &"; + execstring = g_strdup_printf(fmtstring, szURL); + } + -- cgit