diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/AsciiSink.c | 2 | ||||
-rw-r--r-- | src/AsciiSrc.c | 20 | ||||
-rw-r--r-- | src/Box.c | 4 | ||||
-rw-r--r-- | src/Form.c | 4 | ||||
-rw-r--r-- | src/Layout.c | 2 | ||||
-rw-r--r-- | src/List.c | 8 | ||||
-rw-r--r-- | src/MultiSink.c | 2 | ||||
-rw-r--r-- | src/MultiSrc.c | 18 | ||||
-rw-r--r-- | src/Paned.c | 6 | ||||
-rw-r--r-- | src/README.XAW3D | 16 | ||||
-rw-r--r-- | src/Scrollbar.c | 2 | ||||
-rw-r--r-- | src/SimpleMenu.c | 4 | ||||
-rw-r--r-- | src/Sme.c | 8 | ||||
-rw-r--r-- | src/SmeThreeD.c | 2 | ||||
-rw-r--r-- | src/StripChart.c | 2 | ||||
-rw-r--r-- | src/Text.c | 24 | ||||
-rw-r--r-- | src/TextAction.c | 6 | ||||
-rw-r--r-- | src/TextPop.c | 20 | ||||
-rw-r--r-- | src/TextSink.c | 14 | ||||
-rw-r--r-- | src/TextSrc.c | 20 | ||||
-rw-r--r-- | src/ThreeD.c | 4 | ||||
-rw-r--r-- | src/Toggle.c | 6 | ||||
-rw-r--r-- | src/Viewport.c | 2 | ||||
-rw-r--r-- | src/XawIm.c | 2 |
24 files changed, 99 insertions, 99 deletions
diff --git a/src/AsciiSink.c b/src/AsciiSink.c index c14306e..5e6b283 100644 --- a/src/AsciiSink.c +++ b/src/AsciiSink.c @@ -591,7 +591,7 @@ MaxLines(Widget w, Dimension height) } /* Function Name: MaxHeight - * Description: Finds the Minium height that will contain a given number + * Description: Finds the Minimum height that will contain a given number * lines. * Arguments: w - the AsciiSink Object. * lines - the number of lines. diff --git a/src/AsciiSrc.c b/src/AsciiSrc.c index c3d73fa..293f277 100644 --- a/src/AsciiSrc.c +++ b/src/AsciiSrc.c @@ -237,7 +237,7 @@ Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args) /* Function Name: ReadText * Description: This function reads the source. * Arguments: w - the AsciiSource widget. - * pos - position of the text to retreive. + * pos - position of the text to retrieve. * RETURNED text - text block that will contain returned text. * length - maximum number of characters to read. * Returns: The number of characters read into the buffer. @@ -393,7 +393,7 @@ ReplaceText (Widget w, XawTextPosition startPos, XawTextPosition endPos, * position - the position to start scanning. * type - type of thing to scan for. * dir - direction to scan. - * count - which occurance if this thing to search for. + * count - which occurrence of this thing to search for. * include - whether or not to include the character found in * the position that is returned. * Returns: the position of the item found. @@ -489,7 +489,7 @@ Scan (Widget w, XawTextPosition position, XawTextScanType type, if ( ptr < piece->text ) { piece = piece->prev; - if (piece == NULL) /* Begining of text. */ + if (piece == NULL) /* Beginning of text. */ return(0); ptr = piece->text + piece->used - 1; } @@ -527,7 +527,7 @@ Scan (Widget w, XawTextPosition position, XawTextScanType type, } /* Function Name: Search - * Description: Searchs the text source for the text block passed + * Description: Searches the text source for the text block passed * Arguments: w - the AsciiSource Widget. * position - the position to start scanning. * dir - direction to scan. @@ -582,7 +582,7 @@ Search(Widget w, XawTextPosition position, XawTextScanDirection dir, while ( ptr < piece->text ) { piece = piece->prev; - if (piece == NULL) { /* Begining of text. */ + if (piece == NULL) { /* Beginning of text. */ XtFree(buf); return(XawTextSearchError); } @@ -684,7 +684,7 @@ GetValuesHook(Widget w, ArgList args, Cardinal * num_args) *((char **) args[i].value) = src->ascii_src.first_piece->text; } else { - if (XawAsciiSave(w)) /* If save sucessful. */ + if (XawAsciiSave(w)) /* If save successful. */ *((char **) args[i].value) = src->ascii_src.string; } break; @@ -814,7 +814,7 @@ XawAsciiSave(Widget w) * Description: Save the current buffer as a file. * Arguments: w - the AsciiSrc widget. * name - name of the file to save this file into. - * Returns: True if the save was sucessful. + * Returns: True if the save was successful. */ Boolean @@ -895,11 +895,11 @@ RemoveOldStringOrFile(AsciiSrcObject src, Boolean checkString) } /* Function Name: WriteToFile - * Description: Write the string specified to the begining of the file + * Description: Write the string specified to the beginning of the file * specified. * Arguments: string - string to write. * name - the name of the file - * Returns: returns TRUE if sucessful, FALSE otherwise. + * Returns: returns TRUE if successful, FALSE otherwise. */ static Boolean @@ -1293,7 +1293,7 @@ CvtStringToAsciiType(XrmValuePtr args, Cardinal * num_args, XrmValuePtr fromVal, #ifdef ASCII_STRING /************************************************************ * - * Compatability functions. + * Compatibility functions. * ************************************************************/ @@ -401,7 +401,7 @@ Resize(Widget w) /* * * Try to do a new layout within the current width and height; - * if that fails try to resize and do it within the box returne + * if that fails try to resize and do it within the box returned * by PreferredSize. * * TryNewLayout just says if it's possible, and doesn't actually move the kids @@ -509,7 +509,7 @@ GeometryManager(Widget w, XtWidgetGeometry *request, XtWidgetGeometry *reply) (request->request_mode & CWY && request->y != w->core.y)) return (XtGeometryNo); - /* Size changes must see if the new size can be accomodated */ + /* Size changes must see if the new size can be accommodated */ if (request->request_mode & (CWWidth | CWHeight | CWBorderWidth)) { /* Make all three fields in the request valid */ @@ -408,7 +408,7 @@ ResizeChildren(Widget w) form = (FormConstraints)(*childP)->core.constraints; if (fw->form.no_refigure) { /* - * I am changing the widget wrapper w/o modifing the window. This is + * I am changing the widget wrapper w/o modifying the window. This is * risky, but I can get away with it since I am the parent of this * widget, and he must ask me for any geometry changes. * @@ -636,7 +636,7 @@ GeometryManager(Widget w, XtWidgetGeometry *request, XtWidgetGeometry *reply) form->form.virtual_height = w->core.height; /* width and height. */ if (fw->form.no_refigure) { /* - * I am changing the widget wrapper w/o modifing the window. This is + * I am changing the widget wrapper w/o modifying the window. This is * risky, but I can get away with it since I am the parent of this * widget, and he must ask me for any geometry changes. * diff --git a/src/Layout.c b/src/Layout.c index 62082a5..e369a82 100644 --- a/src/Layout.c +++ b/src/Layout.c @@ -741,7 +741,7 @@ ComputeNaturalSizes (LayoutWidget l, BoxPtr box, LayoutDirection dir) DBUG_VOID_RETURN; } -/* given the boxs geometry, set the geometry of the pieces */ +/* given the box's geometry, set the geometry of the pieces */ #define GluePart(a,b,dist) ((a) ? ((int) (((a) * (dist)) / (b) + \ ((dist >= 0) ? 0.5 : -0.5))) : 0) @@ -232,7 +232,7 @@ GetGCs(Widget w) /* CalculatedValues() * * does routine checks/computations that must be done after data changes - * but won't hurt if accidently called + * but won't hurt if accidentally called * * These calculations were needed in SetValues. They were in ResetList. * ResetList called ChangeSize, which made an XtGeometryRequest. You @@ -350,7 +350,7 @@ ChangeSize(Widget w, Dimension width, Dimension height) } /* Function Name: Initialize - * Description: Function that initilizes the widget instance. + * Description: Function that initializes the widget instance. * Arguments: junk - NOT USED. * new - the new widget. * Returns: none @@ -501,7 +501,7 @@ HighlightBackground(Widget w, int x, int y, GC gc) { ListWidget lw = (ListWidget) w; - /* easy to clip the rectangle by hand and probably alot faster than Xlib */ + /* easy to clip the rectangle by hand and probably a lot faster than Xlib */ Dimension width = lw->list.col_width; Dimension height = lw->list.row_height; @@ -1121,7 +1121,7 @@ XawListUnhighlight(Widget w) /* Function Name: XawListHighlight * Description: Highlights the given item. * Arguments: w - the list widget. - * item - the item to hightlight. + * item - the item to highlight. * Returns: none. */ diff --git a/src/MultiSink.c b/src/MultiSink.c index 22f86a5..acf6caa 100644 --- a/src/MultiSink.c +++ b/src/MultiSink.c @@ -622,7 +622,7 @@ MaxLines(Widget w, Dimension height) } /* Function Name: MaxHeight - * Description: Finds the Minium height that will contain a given number + * Description: Finds the Minimum height that will contain a given number * lines. * Arguments: w - the MultiSink Object. * lines - the number of lines. diff --git a/src/MultiSrc.c b/src/MultiSrc.c index 86703ae..22d9c16 100644 --- a/src/MultiSrc.c +++ b/src/MultiSrc.c @@ -244,7 +244,7 @@ Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args) /* Function Name: ReadText * Description: This function reads the source. * Arguments: w - the MultiSource widget. - * pos - position of the text to retreive. + * pos - position of the text to retrieve. * RETURNED text - text block that will contain returned text. * length - maximum number of characters to read. * Returns: The number of characters read into the buffer. @@ -441,7 +441,7 @@ ReplaceText(Widget w, XawTextPosition startPos, XawTextPosition endPos, XawTextB * position - the position to start scanning. * type - type of thing to scan for. * dir - direction to scan. - * count - which occurance if this thing to search for. + * count - which occurrence of this thing to search for. * include - whether or not to include the character found in * the position that is returned. * Returns: the position of the item found. @@ -534,7 +534,7 @@ Scan(Widget w, XawTextPosition position, XawTextScanType type, if ( ptr < piece->text ) { piece = piece->prev; - if (piece == NULL) /* Begining of text. */ + if (piece == NULL) /* Beginning of text. */ return(0); ptr = piece->text + piece->used - 1; } @@ -572,7 +572,7 @@ Scan(Widget w, XawTextPosition position, XawTextScanType type, } /* Function Name: Search - * Description: Searchs the text source for the text block passed + * Description: Searches the text source for the text block passed * Arguments: w - the MultiSource Widget. * position - the position to start scanning. * dir - direction to scan. @@ -657,7 +657,7 @@ Search(Widget w, XawTextPosition position, XawTextScanDirection dir, XawTextBloc while ( ptr < piece->text ) { piece = piece->prev; - if (piece == NULL) { /* Begining of text. */ + if (piece == NULL) { /* Beginning of text. */ XtFree((char *)buf); return(XawTextSearchError); } @@ -777,7 +777,7 @@ GetValuesHook(Widget w, ArgList args, Cardinal *num_args) src->multi_src.first_piece->text; } else { - if (_XawMultiSave(w)) /* If save sucessful. */ + if (_XawMultiSave(w)) /* If save successful. */ *((char **) args[i].value) = src->multi_src.string; } break; @@ -905,7 +905,7 @@ _XawMultiSave( * Description: Save the current buffer as a file. * Arguments: w - the MultiSrc widget. * name - name of the file to save this file into. - * Returns: True if the save was sucessful. + * Returns: True if the save was successful. * * The public interface is XawAsciiSaveAsFile! */ @@ -953,11 +953,11 @@ RemoveOldStringOrFile(MultiSrcObject src, Boolean checkString) } /* Function Name: WriteToFile - * Description: Write the string specified to the begining of the file + * Description: Write the string specified to the beginning of the file * specified. * Arguments: string - string to write. * name - the name of the file - * Returns: returns TRUE if sucessful, FALSE otherwise. + * Returns: returns TRUE if successful, FALSE otherwise. */ static Boolean diff --git a/src/Paned.c b/src/Paned.c index 2c4d476..33dc969 100644 --- a/src/Paned.c +++ b/src/Paned.c @@ -384,7 +384,7 @@ GetRequestInfo(XtWidgetGeometry * geo_struct, Boolean vert) * * 1) size < max && size > min * 2) skip adjust == FALSE - * 3) widget not its prefered height && + * 3) widget not its preferred height && * this change will bring it closer && * The user has not resized this pane. * @@ -576,7 +576,7 @@ LoopAndRefigureChildren(PanedWidget pw, int paneindex, Direction dir, int *sizeu * dir - AnyPane. * * If either of these is true then all panes may be resized and - * the choosing of panes procedes in reverse order starting with the + * the choosing of panes proceeds in reverse order starting with the * last child. */ @@ -1621,7 +1621,7 @@ ChangeManaged(Widget w) Pane pane = PaneInfo(*childP); if (HasGrip(*childP)) PaneInfo(pane->grip)->position = pw->paned.num_panes; - pane->position = pw->paned.num_panes; /*TEMPORY -CDP 3/89 */ + pane->position = pw->paned.num_panes; /*TEMPORARY -CDP 3/89 */ pw->paned.num_panes++; } else diff --git a/src/README.XAW3D b/src/README.XAW3D index dae96e5..2e8cb3f 100644 --- a/src/README.XAW3D +++ b/src/README.XAW3D @@ -35,7 +35,7 @@ Applications written for Xaw3d might have to test the library for a particular feature (see the "Xaw3d build options" section below). To - accomodate this, a private header is installed which reflects the + accommodate this, a private header is installed which reflects the library's capabilities. Xaw3dP.h contains four definitions that may be used for this purpose. For example: @@ -51,8 +51,8 @@ The use of most shadow resources should be intuitive enough, and may be set or read conventionally (e.g., resource files, editres, - programatically, etc.). The userData resource may be used to "hang" - application-specific data on a widget, but this is accessable to + programmatically, etc.). The userData resource may be used to "hang" + application-specific data on a widget, but this is accessible to programs only. Other resources and less-than-obvious features are documented throughout this file. @@ -96,7 +96,7 @@ Xaw3d build options: -------------------- - Like Xaw, the default Xaw3d does not accomodate multi-plane pixmaps. + Like Xaw, the default Xaw3d does not accommodate multi-plane pixmaps. If you want color pixmaps, and have the XPM library installed, pass the --enable-multiplane-bitmaps flag to configure. You may then specify either XPM or XBM files for any Xaw3d bitmap resource, whether by @@ -105,8 +105,8 @@ Note that this enables the use of structures and functions in the XPM library; the XPM library include file (xpm.h) must be available when - building Xaw3d, and the XPM library must then be availble when running - applications that use Xaw3d. This makes Xaw3d dependant on the XPM + building Xaw3d, and the XPM library must then be available when running + applications that use Xaw3d. This makes Xaw3d dependent on the XPM library, so think twice about it. The default stippled shadows used when the beNiceToColormap resource @@ -386,7 +386,7 @@ The Tip widget: --------------- - This Tip widget is not compatable with XFree86's "Xaw7" Tip widget. I + This Tip widget is not compatible with XFree86's "Xaw7" Tip widget. I couldn't grok how it links the specified widgets to a Tip widget, nor how their labels are set. Perhaps it's all done with an "Xaw7" DisplayList, I don't know. So, this XawTipEnable() function requires a @@ -443,7 +443,7 @@ Brian V. Smith <bvsmith@lbl.gov> Malcolm Strickland <chuck-strickland@orl.mmc.com> Frank Terhaar-Yonkers <fty@bizarre.trpnc.epa.gov> - Tim Theisen <tim@cs.wisc.edu> + Tim Theisen <time@cs.wisc.edu> Mitch Trachtenberg <mitch@mta.com> Jerry Whelan <guru@stasi.bradley.edu> Robert Withrow <witr@rwwa.com> diff --git a/src/Scrollbar.c b/src/Scrollbar.c index 69c2d54..038d32d 100644 --- a/src/Scrollbar.c +++ b/src/Scrollbar.c @@ -1085,7 +1085,7 @@ NotifyThumb (Widget w, XEvent *event, String *params, Cardinal *num_params) there is no problem since in this case there is always a constant integer number of pixels the thumb must be moved in order to scroll to the next line/column. */ - /* Removed the dependancy on scrollbar arrows. Xterm as distributed in + /* Removed the dependency on scrollbar arrows. Xterm as distributed in X11R6.6 by The XFree86 Project wants this correction, with or without the arrows. */ xtpf.xtf += 0.0001; diff --git a/src/SimpleMenu.c b/src/SimpleMenu.c index b0776f2..7a0ab0f 100644 --- a/src/SimpleMenu.c +++ b/src/SimpleMenu.c @@ -1011,7 +1011,7 @@ CreateLabel(Widget w) * about the return values, and just want a relayout. * * if this is not the case then it will set width_ret and height_ret - * to be width and height that the child would get if it were layed out + * to be width and height that the child would get if it were laid out * at this time. * * +++ "w" can be the simple menu widget or any of its object children. @@ -1189,7 +1189,7 @@ PositionMenu(Widget w, XPoint * location) /* Function Name: MoveMenu * Description: Actually moves the menu, may force it to - * to be fully visable if menu_on_screen is TRUE. + * to be fully visible if menu_on_screen is TRUE. * Arguments: w - the simple menu widget. * x, y - the current location of the widget. * Returns: none @@ -122,7 +122,7 @@ WidgetClass smeObjectClass = (WidgetClass) &smeClassRec; /* Function Name: ClassPartInitialize * Description: handles inheritance of class functions. - * Arguments: class - the widget classs of this widget. + * Arguments: class - the widget class of this widget. * Returns: none. */ @@ -169,7 +169,7 @@ Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args) } /* Function Name: Highlight - * Description: The default highlight proceedure for menu entries. + * Description: The default highlight procedure for menu entries. * Arguments: w - the menu entry. * Returns: none. */ @@ -182,7 +182,7 @@ Highlight(Widget w) } /* Function Name: Unhighlight - * Description: The default unhighlight proceedure for menu entries. + * Description: The default unhighlight procedure for menu entries. * Arguments: w - the menu entry. * Returns: none. */ @@ -195,7 +195,7 @@ Unhighlight(Widget w) } /* Function Name: Notify - * Description: calls the callback proceedures for this entry. + * Description: calls the callback procedures for this entry. * Arguments: w - the menu entry. * Returns: none. */ diff --git a/src/SmeThreeD.c b/src/SmeThreeD.c index 99fa486..b6d8714 100644 --- a/src/SmeThreeD.c +++ b/src/SmeThreeD.c @@ -216,7 +216,7 @@ AllocTopShadowPixmap (Widget new) /* * I know, we're going to create two pixmaps for each and every * shadow'd widget. Yeuck. I'm semi-relying on server side - * pixmap cacheing. + * pixmap caching. */ if (DefaultDepthOfScreen (scn) == 1) { diff --git a/src/StripChart.c b/src/StripChart.c index 83fb87c..1568b37 100644 --- a/src/StripChart.c +++ b/src/StripChart.c @@ -221,7 +221,7 @@ Destroy (Widget gw) } /* - * NOTE: This function really needs to recieve graphics exposure + * NOTE: This function really needs to receive graphics exposure * events, but since this is not easily supported until R4 I am * going to hold off until then. */ @@ -567,7 +567,7 @@ Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args) ctx->text.numranges = ctx->text.maxranges = 0; ctx->text.gc = DefaultGCOfScreen(XtScreen(ctx)); ctx->text.hasfocus = FALSE; - ctx->text.margin = ctx->text.r_margin; /* Strucure copy. */ + ctx->text.margin = ctx->text.r_margin; /* Structure copy. */ ctx->text.update_disabled = FALSE; ctx->text.old_insert = -1; ctx->text.mult = 1; @@ -775,7 +775,7 @@ _XawTextGetText(TextWidget ctx, XawTextPosition left, XawTextPosition right) else if (_XawTextFormat(ctx) == XawFmtWide) bytes = sizeof(wchar_t); #endif - else /* if there is another fomat, add here */ + else /* if there is another format, add here */ bytes = 1; /* leave space for ZERO */ @@ -1045,7 +1045,7 @@ _BuildLineTable(TextWidget ctx, XawTextPosition position, /* Function Name: GetWidestLine * Description: Returns the width (in pixels) of the widest line that - * is currently visable. + * is currently visible. * Arguments: ctx - the text widget. * Returns: the width of the widest line. * @@ -2154,8 +2154,8 @@ DisplayText(Widget w, XawTextPosition pos1, XawTextPosition pos2) /* * This routine implements multi-click selection in a hardwired manner. * It supports multi-click entity cycling (char, word, line, file) and mouse - * motion adjustment of the selected entitie (i.e. select a word then, with - * button still down, adjust wich word you really meant by moving the mouse). + * motion adjustment of the selected entity (i.e. select a word then, with + * button still down, adjust which word you really meant by moving the mouse). * [NOTE: This routine is to be replaced by a set of procedures that * will allows clients to implements a wide class of draw through and * multi-click selection user interfaces.] @@ -2657,7 +2657,7 @@ ProcessExposeRegion(Widget w, XEvent *event, Region region) } /* - * This routine does all setup required to syncronize batched screen updates + * This routine does all setup required to synchronize batched screen updates */ void @@ -2730,11 +2730,11 @@ _XawTextShowPosition(TextWidget ctx) return; /* - * Find out the bottom the visable window, and make sure that the + * Find out the bottom the visible window, and make sure that the * cursor does not go past the end of this space. * * This makes sure that the cursor does not go past the end of the - * visable window. + * visible window. */ x = ctx->core.width; @@ -2743,7 +2743,7 @@ _XawTextShowPosition(TextWidget ctx) y -= ctx->text.hbar->core.height + 2 * ctx->text.hbar->core.border_width; max_pos = PositionForXY (ctx, x, y); - lines = LineForPosition(ctx, max_pos) + 1; /* number of visable lines. */ + lines = LineForPosition(ctx, max_pos) + 1; /* number of visible lines. */ if ( (ctx->text.insertPos >= ctx->text.lt.top) && (ctx->text.insertPos < max_pos)) @@ -2777,7 +2777,7 @@ _XawTextShowPosition(TextWidget ctx) first = SrcScan(ctx->text.source, first, XawstPositions, XawsdRight, 1, TRUE); - /* Check to make sure the cursor is visable. */ + /* Check to make sure the cursor is visible. */ if (first <= top) number++; @@ -2972,7 +2972,7 @@ GetValuesHook(Widget w, ArgList args, Cardinal * num_args) } /* Function Name: FindGoodPosition - * Description: Returns a valid position given any postition + * Description: Returns a valid position given any position * Arguments: pos - any position. * Returns: a position between (0 and lastPos); */ @@ -3037,7 +3037,7 @@ PopCopyQueue(TextWidget ctx) /* Function Name: TranslateExposeRegion * Description: Translates the expose that came into - * the cordinates that now exist in the Text widget. + * the coordinates that now exist in the Text widget. * Arguments: ctx - the text widget. * expose - a Rectangle, who's region currently * contains the expose event location. diff --git a/src/TextAction.c b/src/TextAction.c index 2ec0d97..00bb0ad 100644 --- a/src/TextAction.c +++ b/src/TextAction.c @@ -1308,7 +1308,7 @@ TextLeaveWindow(Widget w, XEvent *event, String *params, Cardinal *num_params) static XComposeStatus compose_status = {NULL, 0}; /* Function Name: AutoFill - * Description: Breaks the line at the previous word boundry when + * Description: Breaks the line at the previous word boundary when * called inside InsertChar. * Arguments: ctx - The text widget. * Returns: none @@ -1420,7 +1420,7 @@ InsertChar(Widget w, XEvent *event, String *p, Cardinal *n) * * i18n requires the ability to specify multiple characters in a hexa- * decimal string at once. Since Insert was already too long, I made - * this a seperate routine. + * this a separate routine. * * A legal hex string in MBNF: '0' 'x' ( HEX-DIGIT HEX-DIGIT )+ '\0' * @@ -1482,7 +1482,7 @@ IfHexConvertHexElseReturnParam(char *param, int *len_return) } } - /* We quit the above loop becasue we hit a non hex. If that char is \0... */ + /* We quit the above loop because we hit a non hex. If that char is \0... */ if ( ( c == '\0' ) && first_digit ) { *len_return = strlen( hexval ); diff --git a/src/TextPop.c b/src/TextPop.c index 00fe7af..6407c98 100644 --- a/src/TextPop.c +++ b/src/TextPop.c @@ -36,7 +36,7 @@ in this Software without prior written authorization from the X Consortium. * used by all more than one of these dialogs. * * The following functions are the only non-static ones defined - * in this module. They are located at the begining of the + * in this module. They are located at the beginning of the * section that contains this dialog box that uses them. * * void _XawTextInsertFileAction(w, event, params, num_params); @@ -262,7 +262,7 @@ DoInsert(Widget w, XtPointer closure, XtPointer call_data) * Description: Inserts a file into the text widget. * Arguments: tw - The text widget to insert this file into. * str - name of the file to insert. - * Returns: TRUE if the insert was sucessful, FALSE otherwise. + * Returns: TRUE if the insert was successful, FALSE otherwise. */ @@ -399,7 +399,7 @@ AddInsertFileChildren(Widget form, char *ptr, Widget tw) * * Note: * - * If the search was sucessful and the argument popdown is passed to + * If the search was successful and the argument popdown is passed to * this action routine then the widget will automatically popdown the * search widget. */ @@ -481,7 +481,7 @@ SearchButton(Widget w, XtPointer closure, XtPointer call_data) * The parameter list contains one or two entries that may be the following. * * First Entry: The first entry is the direction to search by default. - * This arguement must be specified and may have a value of + * This argument must be specified and may have a value of * "left" or "right". * * Second Entry: This entry is optional and contains the value of the default @@ -519,7 +519,7 @@ _XawTextSearch(Widget w, XEvent *event, String *params, Cardinal *num_params) else #ifdef XAW_INTERNATIONALIZATION if (_XawTextFormat(ctx) == XawFmtWide) { - /*This just does the equivalent of ptr = ""L, a waste because params[1] isnt W aligned.*/ + /*This just does the equivalent of ptr = ""L, a waste because params[1] isn't W aligned.*/ ptr = (char *)XtMalloc(sizeof(wchar_t)); *((wchar_t*)ptr) = (wchar_t)0; } else @@ -565,7 +565,7 @@ _XawTextSearch(Widget w, XEvent *event, String *params, Cardinal *num_params) /* Function Name: InitializeSearchWidget * Description: This function initializes the search widget and - * is called each time the search widget is poped up. + * is called each time the search widget is popped up. * Arguments: search - the search widget structure. * dir - direction to search. * replace_active - state of the sensitivity for the @@ -777,8 +777,8 @@ AddSearchChildren(Widget form, char *ptr, Widget tw) /* Function Name: DoSearch * Description: Performs a search. - * Arguments: search - the serach structure. - * Returns: TRUE if sucessful. + * Arguments: search - the search structure. + * Returns: TRUE if successful. */ /* ARGSUSED */ @@ -1111,7 +1111,7 @@ _SetField(Widget new, Widget old) * name - name of the child. * res_name - name of the resource. * value - the value of the resource. - * Returns: TRUE if sucessful. + * Returns: TRUE if successful. */ static Boolean @@ -1245,7 +1245,7 @@ CenterWidgetOnPoint(Widget w, XEvent *event) * * NOTE: * - * The function argument is passed the following arguements. + * The function argument is passed the following arguments. * * form - the from widget that is the dialog. * ptr - the initial string for the dialog's text widget. diff --git a/src/TextSink.c b/src/TextSink.c index 4d69910..c840a52 100644 --- a/src/TextSink.c +++ b/src/TextSink.c @@ -252,7 +252,7 @@ SetValues(Widget current, Widget request, Widget new, ArgList args, Cardinal *nu * x, y - location to start drawing text. * pos1, pos2 - location of starting and ending points * in the text buffer. - * highlight - hightlight this text? + * highlight - highlight this text? * Returns: none. * * This function doesn't actually display anything, it is only a place @@ -337,7 +337,7 @@ FindPosition(Widget w, XawTextPosition fromPos, int fromx, int width, Boolean st * fromX - x location of starting Position. * toPos - end Position. * resWidth - Distance between fromPos and toPos. - * resPos - Acutal toPos used. + * resPos - Actual toPos used. * resHeight - Height required by this text. * Returns: none. */ @@ -352,7 +352,7 @@ FindDistance(Widget w, XawTextPosition fromPos, int fromx, XawTextPosition toPos } /* Function Name: Resolve - * Description: Resloves a location to a position. + * Description: Resolves a location to a position. * Arguments: w - the TextSink Object. * pos - a reference Position. * fromx - a reference Location. @@ -390,7 +390,7 @@ MaxLines(Widget w, Dimension height) } /* Function Name: MaxHeight - * Description: Finds the Minium height that will contain a given number + * Description: Finds the Minimum height that will contain a given number * lines. * Arguments: w - the TextSink Object. * lines - the number of lines. @@ -445,7 +445,7 @@ GetCursorBounds(Widget w, XRectangle * rect) * x, y - location to start drawing text. * pos1, pos2 - location of starting and ending points * in the text buffer. - * highlight - hightlight this text? + * highlight - highlight this text? * Returns: none. * * This function doesn't actually display anything, it is only a place @@ -562,7 +562,7 @@ XawTextSinkFindPosition(Widget w, XawTextPosition fromPos, int fromx, * fromX - x location of starting Position. * toPos - end Position. * resWidth - Distance between fromPos and toPos. - * resPos - Acutal toPos used. + * resPos - Actual toPos used. * resHeight - Height required by this text. * Returns: none. */ @@ -580,7 +580,7 @@ XawTextSinkFindDistance (Widget w, XawTextPosition fromPos, int fromx, } /* Function Name: XawTextSinkResolve - * Description: Resloves a location to a position. + * Description: Resolves a location to a position. * Arguments: w - the TextSink Object. * pos - a reference Position. * fromx - a reference Location. diff --git a/src/TextSrc.c b/src/TextSrc.c index afe8bc0..488509b 100644 --- a/src/TextSrc.c +++ b/src/TextSrc.c @@ -178,7 +178,7 @@ ClassPartInitialize(WidgetClass wc) /* Function Name: Read * Description: This function reads the source. * Arguments: w - the TextSrc Object. - * pos - position of the text to retreive. + * pos - position of the text to retrieve. * RETURNED text - text block that will contain returned text. * length - maximum number of characters to read. * Returns: The number of characters read into the buffer. @@ -216,7 +216,7 @@ Replace (Widget w, XawTextPosition startPos, XawTextPosition endPos, XawTextBloc * position - the position to start scanning. * type - type of thing to scan for. * dir - direction to scan. - * count - which occurance if this thing to search for. + * count - which occurrence if this thing to search for. * include - whether or not to include the character found in * the position that is returned. * Returns: EXITS WITH AN ERROR MESSAGE. @@ -236,7 +236,7 @@ Scan(Widget w, XawTextPosition position, XawTextScanType type, } /* Function Name: Search - * Description: Searchs the text source for the text block passed + * Description: Searches the text source for the text block passed * Arguments: w - the TextSource Object. * position - the position to start scanning. * dir - direction to scan. @@ -256,7 +256,7 @@ Search(Widget w, XawTextPosition position, XawTextScanDirection dir, XawTextBloc * Arguments: w - the TextSrc object. * selection - the current selection atom. * target - the current target atom. - * type - the type to conver the selection to. + * type - the type to convert the selection to. * RETURNED value, length - the return value that has been converted. * RETURNED format - the format of the returned value. * Returns: TRUE if the selection has been converted. @@ -335,7 +335,7 @@ CvtStringToEditMode(XrmValuePtr args, Cardinal *num_args, XrmValuePtr fromVal, X /* Function Name: XawTextSourceRead * Description: This function reads the source. * Arguments: w - the TextSrc Object. - * pos - position of the text to retreive. + * pos - position of the text to retrieve. * RETURNED text - text block that will contain returned text. * length - maximum number of characters to read. * Returns: The number of characters read into the buffer. @@ -385,7 +385,7 @@ XawTextSourceReplace (Widget w, XawTextPosition startPos, * position - the position to start scanning. * type - type of thing to scan for. * dir - direction to scan. - * count - which occurance if this thing to search for. + * count - which occurrence if this thing to search for. * include - whether or not to include the character found in * the position that is returned. * Returns: The position of the text. @@ -417,7 +417,7 @@ XawTextSourceScan(Widget w, XawTextPosition position, } /* Function Name: XawTextSourceSearch - * Description: Searchs the text source for the text block passed + * Description: Searches the text source for the text block passed * Arguments: w - the TextSource Object. * position - the position to start scanning. * dir - direction to scan. @@ -450,7 +450,7 @@ XawTextSourceSearch(Widget w, XawTextPosition position, * Arguments: w - the TextSrc object. * selection - the current selection atom. * target - the current target atom. - * type - the type to conver the selection to. + * type - the type to convert the selection to. * RETURNED value, length - the return value that has been converted. * RETURNED format - the format of the returned value. * Returns: TRUE if the selection has been converted. @@ -519,7 +519,7 @@ _XawTextFormat(TextWidget tw) * The caller is responsible for freeing both the source and ret string. * * wstr - source wchar string. - * len_in_out - lengh of string. + * len_in_out - length of string. * As In, length of source wchar string, measured in wchar. * As Out, length of returned string. */ @@ -546,7 +546,7 @@ _XawTextWCToMB(Display *d, wchar_t *wstr, int *len_in_out) * The caller is responsible for freeing both the source and ret string. * * str - source string. - * len_in_out - lengh of string. + * len_in_out - length of string. * As In, it is length of source string. * As Out, it is length of returned string, measured in wchar. */ diff --git a/src/ThreeD.c b/src/ThreeD.c index 586242d..4183138 100644 --- a/src/ThreeD.c +++ b/src/ThreeD.c @@ -203,7 +203,7 @@ AllocTopShadowPixmap (Widget new) /* * I know, we're going to create two pixmaps for each and every * shadow'd widget. Yeuck. I'm semi-relying on server side - * pixmap cacheing. + * pixmap caching. */ if (DefaultDepthOfScreen (scn) == 1) { @@ -486,7 +486,7 @@ Initialize (Widget request, Widget new, ArgList args, Cardinal *num_args) Eeek. We're probably going to XQueryColor() twice for each widget. Necessary because you can set the top and bottom shadows independent of each other in - SetValues. Some cacheing would certainly help... + SetValues. Some caching would certainly help... */ AllocTopShadowPixel (new); AllocBotShadowPixel (new); diff --git a/src/Toggle.c b/src/Toggle.c index 533c659..e39cda3 100644 --- a/src/Toggle.c +++ b/src/Toggle.c @@ -232,10 +232,10 @@ Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args) * have to handle the case where it needs to be set. * * If this widget is in a radio group then it may cause another - * widget to be unset, thus calling the notify proceedure. + * widget to be unset, thus calling the notify procedure. * * I want to set the toggle if the user set the state to "On" in - * the resource group, reguardless of what my ancestors did. + * the resource group, regardless of what my ancestors did. */ if (tw_req->command.set) @@ -310,7 +310,7 @@ SetValues (Widget current, Widget request, Widget new, ArgList args, Cardinal *n /* Function Name: ToggleDestroy * Description: Destroy Callback for toggle widget. * Arguments: w - the toggle widget that is being destroyed. - * junk, grabage - not used. + * junk, garbage - not used. * Returns: none. */ diff --git a/src/Viewport.c b/src/Viewport.c index a37a9a1..03f55bb 100644 --- a/src/Viewport.c +++ b/src/Viewport.c @@ -758,7 +758,7 @@ ComputeLayout(Widget widget, Boolean query, Boolean destroy_scrollbars) * Description: Computes the layout give forcebars is set. * Arguments: widget - the viewport widget. * query - whether or not to query the child. - * intended - the cache of the childs height is + * intended - the cache of the child's height is * stored here ( USED AND RETURNED ). * clip_width, clip_height - size of clip window. * (USED AND RETURNED ). diff --git a/src/XawIm.c b/src/XawIm.c index 78d116f..9f666d2 100644 --- a/src/XawIm.c +++ b/src/XawIm.c @@ -300,7 +300,7 @@ DestroyAllIM(XawVendorShellExtPart *ve) contextErrDataRec *contextErrData; /* - * Destory all ICs + * Destroy all ICs */ if (IsSharedIC(ve)) { if ((p = ve->ic.shared_ic_table) && p->xic) { |