Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Moiman committed Mar 31, 2023
1 parent e25b559 commit 2b0c844
Show file tree
Hide file tree
Showing 176 changed files with 402 additions and 402 deletions.
4 changes: 2 additions & 2 deletions APICHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ renamed all the Event record member names

after 0.9.7

idle priorities now have right names. See eg progrss demo for how to change the code.
idle priorities now have right names. See eg progress demo for how to change the code.

treeViewSetHadjustment, treeViewSetHadjustment,
treeViewSetHadjustment, treeViewSetHadjustment all renamed and the set ones
Expand All @@ -20,7 +20,7 @@ type will break if X servers should ever support more than 5 buttons.

Events.hsc: removed several constructors, change the Key event.

General.chs: changed the priorty constants
General.chs: changed the priority constants

Bin.chs: make binGetChild return Maybe

Expand Down
2 changes: 1 addition & 1 deletion INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ If you are using Stack and list "gtk" as a build dependency in your *.cabal file
* pango-devel
* gtk2-devel

This way you won't have to add cabal directory to your $PATH. Skipping cabal configuration and letting Stack manage all dependencies will save you a lot ot time.
This way you won't have to add cabal directory to your $PATH. Skipping cabal configuration and letting Stack manage all dependencies will save you a lot of time.

=== Installing darcs ===
There are binaries available on [http://darcs.net/Binaries the official download page], or in almost all cases via your package manager as a package named darcs.
Expand Down
2 changes: 1 addition & 1 deletion OLD_TODO
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ TODO for gtk2hs

8/12/2004 Duncan Coutts <duncan@coutts.uklinux.net>

* there sould be a rule to rebuild .chi files even if the corresponding
* there should be a rule to rebuild .chi files even if the corresponding
.hs file still exists. Otherwise the build can stick and you have to
delete the .hs file to unstick it. Each .chs file should depend on the
.hs file and (or perhaps instead of) the .chi file.
Expand Down
22 changes: 11 additions & 11 deletions cairo/Graphics/Rendering/Cairo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ popGroupToSource = liftRender0 Internal.popGroupToSource
setSourceRGB ::
Double -- ^ red component of colour
-> Double -- ^ green component of colour
-> Double -- ^ blue compoment of colour
-> Double -- ^ blue component of colour
-> Render ()
setSourceRGB = liftRender3 Internal.setSourceRGB

Expand Down Expand Up @@ -568,7 +568,7 @@ getAntialias = liftRender0 Internal.getAntialias

-- | Sets the dash pattern to be used by 'stroke'. A dash pattern is specified
-- by dashes, a list of positive values. Each value provides the user-space
-- length of altenate "on" and "off" portions of the stroke. The offset
-- length of alternate "on" and "off" portions of the stroke. The offset
-- specifies an offset into the pattern at which the stroke begins.
--
-- If @dashes@ is @[]@ then dashing is disabled.
Expand Down Expand Up @@ -1232,7 +1232,7 @@ withLinearPattern x0 y0 x1 y1 f =
withRadialPattern ::
Double -- ^ @cx0@ - x coordinate for the center of the start circle
-> Double -- ^ @cy0@ - y coordinate for the center of the start circle
-> Double -- ^ @radius0@ - radius of the start cirle
-> Double -- ^ @radius0@ - radius of the start circle
-> Double -- ^ @cx1@ - x coordinate for the center of the end circle
-> Double -- ^ @cy1@ - y coordinate for the center of the end circle
-> Double -- ^ @radius1@ - radius of the end circle
Expand Down Expand Up @@ -1531,7 +1531,7 @@ meshPatternGetPatchCount ::
-> m (Status, Int)
meshPatternGetPatchCount p = liftIO$ Internal.meshPatternGetPatchCount p

-- | Gets path defining a spedified patch from a mesh pattern.
-- | Gets path defining a specified patch from a mesh pattern.
--
-- qv <https://www.cairographics.org/manual/cairo-cairo-pattern-t.html#cairo-mesh-pattern-get-path>
meshPatternGetPath ::
Expand Down Expand Up @@ -1812,7 +1812,7 @@ fontOptionsEqual a b = liftIO $ Internal.fontOptionsEqual a b
fontOptionsSetAntialias :: MonadIO m => FontOptions -> Antialias -> m ()
fontOptionsSetAntialias a b = liftIO $ Internal.fontOptionsSetAntialias a b

-- | Gets the antialising mode for the font options object.
-- | Gets the antialiasing mode for the font options object.
--
fontOptionsGetAntialias :: MonadIO m => FontOptions -> m Antialias
fontOptionsGetAntialias a = liftIO $ Internal.fontOptionsGetAntialias a
Expand Down Expand Up @@ -1880,7 +1880,7 @@ withSimilarSurface surface contentType width height f =


-- | Like 'withSimilarSurface' but creates a Surface that is managed by the
-- Haskell memory manager rather than only being temporaily allocated. This
-- Haskell memory manager rather than only being temporarily allocated. This
-- is more flexible and allows you to create surfaces that persist, which
-- can be very useful, for example to cache static elements in an animation.
--
Expand All @@ -1904,7 +1904,7 @@ createSimilarSurface surface contentType width height = do
-- surface (like a combination of 'withTargetSurface' and 'withSimilarSurface').
--
-- This is useful for drawing to a temporary surface and then compositing it
-- into the main suface. For example, the following code draws to a temporary
-- into the main surface. For example, the following code draws to a temporary
-- surface and then uses that as a mask:
--
-- > renderWithSimilarSurface ContentAlpha 200 200 $ \tmpSurface -> do
Expand Down Expand Up @@ -2026,7 +2026,7 @@ formatStrideForWidth = Internal.formatStrideForWidth
#endif

-- | Creates an image surface of the specified format and dimensions.
-- The initial contents of the surface is undefined; you must explicitely
-- The initial contents of the surface is undefined; you must explicitly
-- clear the buffer, using, for example, 'rectangle' and 'fill' if you want it
-- cleared.
--
Expand All @@ -2046,7 +2046,7 @@ withImageSurface format width height f =
(\surface -> f surface)

-- | Like 'withImageSurface' but creates a Surface that is managed by the
-- Haskell memory manager rather than only being temporaily allocated. This
-- Haskell memory manager rather than only being temporarily allocated. This
-- is more flexible and allows you to create surfaces that persist, which
-- can be very useful, for example to cache static elements in an animation.
--
Expand Down Expand Up @@ -2150,7 +2150,7 @@ imageSurfaceGetData a = do
-- number of bytes between rows.
--
-- * The returned array is a flat representation of a three dimensional array:
-- x-coordiante, y-coordinate and several channels for each color. The
-- x-coordinate, y-coordinate and several channels for each color. The
-- format depends on the 'Format' of the surface:
--
-- 'FormatARGB32': each pixel is 32 bits with alpha in the upper 8 bits,
Expand All @@ -2163,7 +2163,7 @@ imageSurfaceGetData a = do
-- 'FormatA8': each pixel is 8 bits holding an alpha value
--
-- 'FormatA1': each pixel is one bit where pixels are packed into 32 bit
-- quantities. The ordering depends on the endianes of the platform. On a
-- quantities. The ordering depends on the endianness of the platform. On a
-- big-endian machine, the first pixel is in the uppermost bit, on a
-- little-endian machine the first pixel is in the least-significant bit.
--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-----------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.Cairo.Internal.Drawing.Tranformations
-- Module : Graphics.Rendering.Cairo.Internal.Drawing.Transformations
-- Copyright : (c) Paolo Martini 2005
-- License : BSD-style (see cairo/COPYRIGHT)
--
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/AddLinks.hs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ parseExports content = flip Map.lookup concordance

-----------------------------------------------------------------------------
-- Secondly, scanning, munging stuff
-- to find the code snippets and to do all necesary conversion/escaping
-- to find the code snippets and to do all necessary conversion/escaping
-- and add in the links and call the next bit to do any syntax highliting
--
data DocType = LaTeX | XHTML
Expand Down
6 changes: 3 additions & 3 deletions docs/tutorial/Tutorial_Port/app1.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ using the Cairo drawing library. Drawing in Gtk2Hs is not very different from dr
though that subject is large enough to merit its own tutorials.</p>
<p>See the <a href="http://cairographics.org/documentation/">Cairo Documentation Site</a> for that.</p>
<p>Drawing to the screen or in portable network graphics (png), portable document format (pdf),
postscript (ps) or scaleable vector graphics (svg) formats of any Cairo drawing uses some special syntax in Gtk2Hs.
postscript (ps) or scalable vector graphics (svg) formats of any Cairo drawing uses some special syntax in Gtk2Hs.
The goal of this appendix is to explain what basic functions you need.
<h3>1. Drawing</h3>

Expand Down Expand Up @@ -197,7 +197,7 @@ myDraw w h = do
<p>Note that this is just like the previous example, except for the actual drawing. This introduces
<code>setSourceRGBA</code> which sets not just the color but also the transparency, as a
measure between 0 and 1. The example also uses a <code>rectangle</code> and a method
<code>fill</code> which fills closed figures with the specified color and transparancy.</p>
<code>fill</code> which fills closed figures with the specified color and transparency.</p>
<p class="notebox"><strong>Note:</strong> Because of a naming conflict with an older
Gtk2Hs drawing library you must either hide <code>fill</code> in the Graphics.UI.Gtk import
statement or use the full name <code>Graphics.Rendering.Cairo.fill</code> .</p>
Expand Down Expand Up @@ -250,7 +250,7 @@ are in points (and type <code>Double</code> ), so you'll have to check how this
-&gt; IO a</pre>
<p>To save you could use the same 'recipe' as above, or the shorter notation:</p>
<pre class="codebox">withPSSurface "myDraw.ps" psw psh (flip renderWith (myDraw psw psh &gt;&gt; showPage))</pre>
<p>Finally, to save in scaleable vector graphics format, use the same syntax, but with
<p>Finally, to save in scalable vector graphics format, use the same syntax, but with
<code>withSVGSurface</code> . So this would be:</p>
<pre class="codebox">withSVGSurface "myDraw.svg" pgw pgh (flip renderWith $ myDraw pgw pgh &gt;&gt; showPage)</pre>
<p>An example that saves the last drawing shown above in all four formats (with different sizes) is:</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/Tutorial_Port/chap4-6.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<p>
The <code>Entry</code> widget allows text to be typed and displayed in a single
line text box. A fairly large set of key bindings are supported by default. The
user can choose between insert and overwite mode by toggling the
user can choose between insert and overwrite mode by toggling the
<strong>Insert</strong> key.
</p>

Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/Tutorial_Port/chap4-7.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ without manually creating an adjustment.
</pre>

<p>
The three arguments, all of type <code>Double</code>, specify the minum
The three arguments, all of type <code>Double</code>, specify the minimum
allowable value, the maximum allowable value, and the increment added or
subtracted by spinning the widget.
</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorial/Tutorial_Port/chap5-2.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<code>FileChooserActionOpen</code> here, and when the user
definitely chooses a file by doubleclicking it or pressing the
Enter key, the
<code>onFileActived</code> signal is emitted. Then we use:</p>
<code>onFileActivated</code> signal is emitted. Then we use:</p>
<pre class="codebox">fileChooserGetFilename :: FileChooserClass self =&gt; self -&gt; IO (Maybe FilePath)
</pre>
<p>From the filepath, the program can then open the file, or
Expand Down Expand Up @@ -304,7 +304,7 @@ Maybe String -- title of the dialog or default
folder. As in the example before, trying to create a folder which
already exists results in an error message. Overwriting a file,
however, makes sense and is allowed by default. You can make the
user confirm any overwite of a file with:</p>
user confirm any overwrite of a file with:</p>
<pre class="codebox">fileChooserSetDoOverwriteconfirmation :: FileChooserClass self
=&gt; self -&gt; Bool -&gt; IO ()
</pre>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/Tutorial_Port/chap5-4.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ notebookEnablePopup :: NotebookClass self =&gt; Attr self Bool
another page than the (default) first one. The attribute
<code>notebookEnablePopup</code> determines whether the user's
clicking the right mouse button on a tab will show a popup menu
of all the available pages. That is, if the menu fuctions have
of all the available pages. That is, if the menu functions have
been defined.</p>
<p>A
<code>Notebook</code> widget has its own signal handling
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/Tutorial_Port/es-app1.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ en Cairo, pero no est&aacute; de m&aacute;s desarrollar un tutorial espec&iacute
<p>Puedes consultar <a href="http://cairographics.org/documentation/">el centro de documentaci&oacute;n de Cairo.</a></p>
<p>Para dibujar usando los formatos de Cairo con Gtk2Hs necesitamos una sintaxis especial, ya sea pare realizar
dibujos en pantalla, o en diferentes formatos de fichero, portable network graphics (png), portable document format (pdf),
postscript (ps) o scaleable vector graphics (svg).
postscript (ps) o scalable vector graphics (svg).
El objetivo de este ap&eacute;ndice es explicar las funciones b&aacute;sicas que necesitar&aacute;s.
<h3>1. Dibujar</h3>

Expand Down
6 changes: 3 additions & 3 deletions docs/tutorial/intro/index.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This is an unreviewed first draft of a //Getting Started// tutorial to Gtk2Hs.
== Introduction ==

GTK+ started life as the Gimp Tool Kit, that is, the user interface library for the Gimp drawing program. It has grown to a general-purpose, multi-platform user interface library, with bindings for many programming languages. This tutorial describes Gtk2Hs, a binding for the functional programming language Haskell. Gtk+ and Gtk2Hs offer a large number of widgets, ranging from windows and buttons to menus and tree widgets that feature a separation of the GUI element (the view) from the data store (the model). The toolkit includes a visual interface designer, Glade, which stores the composition of several widgets (user interface elements), their layout and many attributes in an XML file.
An application can use Gtk2Hs to load these so created windows at runtime and connect the individual widgets to the application logic. Of course, anything that can be created using Glade can also be constructed programatically. Building and destroying, accessing and manipulating widgets is all done through the Gtk2Hs library [API https://github.com/gtk2hs/gtk2hs/tree/master/docs].
An application can use Gtk2Hs to load these so created windows at runtime and connect the individual widgets to the application logic. Of course, anything that can be created using Glade can also be constructed programmatically. Building and destroying, accessing and manipulating widgets is all done through the Gtk2Hs library [API https://github.com/gtk2hs/gtk2hs/tree/master/docs].

Gtk+ itself is written in C, even though the widgets are described in an objects-oriented fashion with attributes and methods, derived from a single root object. This class hierarchy is reflected in Gtk2Hs using the Haskell type classes and data types. Gtk2Hs provides a Haskell equivalent to most functions in Gtk+. Since
a graphical user interface is concerned with input and output of an application, most Gtk2Hs functions live in the Haskell IO monad.
Expand Down Expand Up @@ -154,8 +154,8 @@ main = do
| button <- [button1, button2, button3] ]

-- This sets button3 to be a so called 'secondary child'. When the layout
-- stlye is ButtonboxStart or ButtonboxEnd, the secondary children are
-- grouped seperately from the others. Resize the window to see the effect.
-- style is ButtonboxStart or ButtonboxEnd, the secondary children are
-- grouped separately from the others. Resize the window to see the effect.
--
-- This is not interesting in itself but shows how to set child attributes.
-- Note that the child attribute 'buttonBoxChildSecondary' takes the
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/tutorial.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ constructor ``windowNew :: IO Window`` creates a new top level window. A
window has certain property which are defined in the
[Window module https://hackage.haskell.org/package/gtk-0.14.6/docs/Graphics-UI-Gtk-Windows-Window.html].
One of these properties is the name that appears in the title bar,
documented as ``windowTitle :: WindowClas s self => Attr self String``.
documented as ``windowTitle :: WindowClass self => Attr self String``.
This property is accessible through the ``set`` and ``get`` functions. For
instance, the line ``set window [ windowTitle := "Hello World" ]`` sets
the ``windowTitle`` property of ``window`` to the given string.
Expand Down
2 changes: 1 addition & 1 deletion gio/System/GIO/Async/Cancellable.chs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ cancellablePopCurrent cancellable =
{# call cancellable_pop_current #}
(fromMaybe (Cancellable nullForeignPtr) cancellable)

-- | Pushes cancellable onto the cancellable stack. The current cancllable can then be recieved using
-- | Pushes cancellable onto the cancellable stack. The current cancllable can then be received using
-- 'cancellableGetCurrent' .
--
-- This is useful when implementing cancellable operations in code that does not allow you to pass down
Expand Down
4 changes: 2 additions & 2 deletions gio/System/GIO/File/AppInfo.chs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ appInfoGetIcon appinfo =
-- @launchContext@ to get information about the details of the launcher (like what screen it is on).
-- Throws a 'GError' if an error occurs
--
-- To lauch the application without arguments pass a emtpy files list.
-- To launch the application without arguments pass a empty files list.
--
-- Note that even if the launch is successful the application launched can fail to start if it runs
-- into problems during startup. There is no way to detect this.
Expand Down Expand Up @@ -257,7 +257,7 @@ appInfoSupportsUris appinfo =
-- @launchContext@ to get information about the details of the launcher (like what screen it is on).
-- Throws a 'GError' if an error occurs.
--
-- To lauch the application without arguments pass a empty uris list.
-- To launch the application without arguments pass a empty uris list.
--
-- Note that even if the launch is successful the application launched can fail to start if it runs
-- into problems during startup. There is no way to detect this.
Expand Down
2 changes: 1 addition & 1 deletion gio/System/GIO/File/ContentType.chs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module System.GIO.File.ContentType (
-- * Details
--
-- | A content type is a platform specific string that defines the type of a file. On unix it is a mime
-- type, on win32 it is an extension string like ".doc", ".txt" or a percieved string like
-- type, on win32 it is an extension string like ".doc", ".txt" or a perceived string like
-- "audio". Such strings can be looked up in the registry at HkeyClassesRoot.

-- * Methods
Expand Down
4 changes: 2 additions & 2 deletions gio/System/GIO/File/File.chs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ fileGetChildForDisplayName file displayName =
withUTFString displayName $ \cDisplayName ->
propagateGError ({# call file_get_child_for_display_name #} (toFile file) cDisplayName)

-- | Checks whether file has the prefix specified by prefix. In other word, if the names of inital
-- | Checks whether file has the prefix specified by prefix. In other word, if the names of initial
-- elements of files pathname match prefix. Only full pathname elements are matched, so a path like
-- /foo is not considered a prefix of /foobar, only of / foo/bar.
--
Expand Down Expand Up @@ -1882,7 +1882,7 @@ fileStopMountable file flags mountOperation cancellable callback = do

-- | Finishes a stop operation. See 'fileStopMountable' for details.
--
-- Finish an asynchronous stop operation that was stoped with 'fileStopMountable'.
-- Finish an asynchronous stop operation that was stopped with 'fileStopMountable'.
--
-- Throws a 'GError' if an error occurs.
fileStopMountableFinish :: FileClass file
Expand Down
4 changes: 2 additions & 2 deletions gio/System/GIO/File/FileAttribute.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ module System.GIO.File.FileAttribute (
--
-- Keys are strings that contain a key namespace and a key name, separated by a colon,
-- e.g. "namespace:keyname". Namespaces are included to sort key-value pairs by namespaces for
-- relevance. Keys can be retrived using wildcards, e.g. \"standard::*\" will return all of the keys in
-- relevance. Keys can be retrieved using wildcards, e.g. \"standard::*\" will return all of the keys in
-- the "standard" namespace.
--
-- Values are stored within the list in 'FileAttributeValue' structures. Values can store different
-- types, listed in the enum 'FileAttributeType'. Upon creation of a 'FileAttributeValue', the type will
-- be set to 'FileAttributeTypeInvalid'.
--
-- The list of possible attributes for a filesystem (pointed to by a 'File') is availible as a
-- The list of possible attributes for a filesystem (pointed to by a 'File') is available as a
-- 'FileAttributeInfoList'. This list is queryable by key names as indicated earlier.
--
-- Classes that implement 'FileIface' will create a 'FileAttributeInfoList' and install default keys and
Expand Down
Loading

0 comments on commit 2b0c844

Please sign in to comment.