mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Fix rendering crash with patch developed by the Ted developer and
sent via the submitter. Set maintainer to submitter. PR: 53329 Submitted by: Jonathan Drews <j.e.drews@att.net>
This commit is contained in:
parent
3da4dd4739
commit
11e6598679
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83207
@ -11,12 +11,13 @@ CATEGORIES= editors textproc print
|
||||
MASTER_SITES= ftp://ftp.nluug.nl/pub/editors/ted/
|
||||
EXTRACT_SUFX= .src.tar.gz
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= j.e.drews@att.net
|
||||
COMMENT= X11 based RTF editor
|
||||
|
||||
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
||||
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
||||
tiff.4:${PORTSDIR}/graphics/tiff
|
||||
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/Fontmap:${PORTSDIR}/print/gsfonts
|
||||
|
||||
WRKSRC= ${WRKDIR}/Ted-${PORTVERSION}
|
||||
CONFIGURE_WRKSRC= ${WRKSRC}/Ted
|
||||
@ -33,7 +34,7 @@ MAKE_ENV= DEF_AFMDIR="-DAFMDIR=\"\\\"${AFMDIR}\\\"\"" \
|
||||
ALL_TARGET= compile.shared
|
||||
|
||||
AFMDIR= ${PREFIX}/share/Ted/afm
|
||||
INDDIR= ${PREFIX}/share/Ted/ind
|
||||
INDDIR= ${PREFIX}/share/Ted/ind
|
||||
INFODIR= ${PREFIX}/share/doc/Ted
|
||||
|
||||
post-extract:
|
||||
@ -41,8 +42,7 @@ post-extract:
|
||||
|
||||
post-patch:
|
||||
${FIND} ${WRKSRC} -name "configure" | ${XARGS} ${REINPLACE_CMD} -e \
|
||||
's|/usr/apps|${LOCALBASE}|g ; \
|
||||
s|gtk-config|${GTK_CONFIG:T}|g'
|
||||
's|/usr/apps|${LOCALBASE}|g ; '
|
||||
${REINPLACE_CMD} \
|
||||
's|DEF_PKGDIR|DEF_DOCUMENT_DIR|g' ${WRKSRC}/Ted/makefile.in
|
||||
|
||||
|
93
editors/ted/files/patch-appFrame-appFileChooserMotif.c
Normal file
93
editors/ted/files/patch-appFrame-appFileChooserMotif.c
Normal file
@ -0,0 +1,93 @@
|
||||
--- appFrame/appFileChooserMotif.c Fri Apr 4 06:46:48 2003
|
||||
+++ /home/bsd/patches/TedFixes/appFileChooserMotif.c Sun Jun 1 20:19:07 2003
|
||||
@@ -549,6 +549,7 @@
|
||||
static int appMakeFileChooser( AppChooserInformation ** pAci,
|
||||
Widget relative,
|
||||
EditApplication * ea,
|
||||
+ int withFilter,
|
||||
const char * defaultFilter,
|
||||
Widget option )
|
||||
{
|
||||
@@ -624,15 +625,21 @@
|
||||
NULL );
|
||||
|
||||
/* Not necessary
|
||||
- XtAddCallback( text, XmNactivateCallback,
|
||||
+ if ( withFilter )
|
||||
+ {
|
||||
+ XtAddCallback( text, XmNactivateCallback,
|
||||
appFileFilterActivated, (void *)aci );
|
||||
+ }
|
||||
*/
|
||||
|
||||
filterButton= XmFileSelectionBoxGetChild( aci->aciDialog.adDialog,
|
||||
XmDIALOG_APPLY_BUTTON );
|
||||
|
||||
- XtAddCallback( filterButton, XmNactivateCallback,
|
||||
+ if ( withFilter )
|
||||
+ {
|
||||
+ XtAddCallback( filterButton, XmNactivateCallback,
|
||||
appFileFilterActivated, (void *)aci );
|
||||
+ }
|
||||
|
||||
text= XmFileSelectionBoxGetChild( aci->aciDialog.adDialog, XmDIALOG_TEXT );
|
||||
XtVaSetValues( text,
|
||||
@@ -705,14 +712,15 @@
|
||||
EditApplication * ea )
|
||||
{
|
||||
AppChooserInformation * aci= (AppChooserInformation *)0;
|
||||
+ const int withFilter= extensionCount > 0;
|
||||
|
||||
- if ( appMakeFileChooser( &aci, relative, ea, defaultFilter, option ) )
|
||||
+ if ( appMakeFileChooser( &aci, relative, ea, withFilter, defaultFilter, option ) )
|
||||
{ LDEB(1); return; }
|
||||
|
||||
XtAddCallback( aci->aciDialog.adDialog,
|
||||
XmNokCallback, appOpenChooserOk, (XtPointer)aci );
|
||||
|
||||
- if ( extensionCount > 0 )
|
||||
+ if ( withFilter )
|
||||
{
|
||||
appFileMakeFilter( aci );
|
||||
|
||||
@@ -727,7 +735,7 @@
|
||||
aci->aciOpenDocument= openDocument;
|
||||
aci->aciFilename= (char *)0;
|
||||
|
||||
- if ( extensionCount > 0 )
|
||||
+ if ( withFilter )
|
||||
{
|
||||
WidgetList children;
|
||||
Cardinal childCount= 0;
|
||||
@@ -920,16 +928,17 @@
|
||||
char ** pFilename )
|
||||
{
|
||||
AppChooserInformation * aci= (AppChooserInformation *)0;
|
||||
+ const int withFilter= ea->eaFileExtensionCount > 0;
|
||||
int response;
|
||||
|
||||
- if ( appMakeFileChooser( &aci, relative, ea,
|
||||
+ if ( appMakeFileChooser( &aci, relative, ea, withFilter,
|
||||
ea->eaDefaultFileFilter, option ) )
|
||||
{ return ACIrespFAILURE; }
|
||||
|
||||
XtAddCallback( aci->aciDialog.adDialog,
|
||||
XmNokCallback, appSaveOkPushed, (XtPointer)aci );
|
||||
|
||||
- if ( ea->eaFileExtensionCount > 0 )
|
||||
+ if ( withFilter )
|
||||
{
|
||||
appFileMakeFilter( aci );
|
||||
|
||||
@@ -977,9 +986,10 @@
|
||||
char ** pFilename )
|
||||
{
|
||||
AppChooserInformation * aci= (AppChooserInformation *)0;
|
||||
+ const int withFilter= 0;
|
||||
int response;
|
||||
|
||||
- if ( appMakeFileChooser( &aci, panel, ea, "*.ps", option ) )
|
||||
+ if ( appMakeFileChooser( &aci, panel, ea, withFilter, "*.ps", option ) )
|
||||
{ LDEB(1); return ACIrespFAILURE; }
|
||||
|
||||
XtAddCallback( aci->aciDialog.adDialog,
|
@ -1,5 +1,4 @@
|
||||
Ted is a text editor running under X Windows on Unix/Linux systems. Ted was
|
||||
developed as an operating system accessory like Wordpad on MS-Windows.
|
||||
Ted is a text editor running under X Windows on Unix/Linux systems.
|
||||
|
||||
Features
|
||||
--------
|
||||
@ -11,11 +10,9 @@ Features
|
||||
Portuguese, French and Spanish.)
|
||||
* Directly mailing documents from Ted.
|
||||
* Cut/Copy/Paste, also with other applications.
|
||||
* Find/Replace.
|
||||
* Find/Replace using regular expressions.
|
||||
* Ruler: Paragraph indentation, Indentation of first line, Tabs.
|
||||
* Copy/Paste
|
||||
Ruler.
|
||||
* Page breaks.
|
||||
* Footnotes and endnotes.
|
||||
* Tables: Insert Table, Row, Column. Changing the column width of tables
|
||||
with their ruler.
|
||||
* Symbols and accented characters are fully supported.
|
||||
|
Loading…
Reference in New Issue
Block a user