Skip to content

Commit ade6401

Browse files
haaninjosebp
authored andcommitted
Various string fixes
Punctuation, spelling, grammar etc. Closes #196
1 parent 819937d commit ade6401

8 files changed

+12
-12
lines changed

source/basics.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ has been connected to.
5555

5656
If you have lost the "handler_id" for some reason (for example the handlers
5757
were installed using :func:`Gtk.Builder.connect_signals`), you can still
58-
disconnect a specific callback using the function :func:`disconnect_by_func`:
58+
disconnect a specific callback using the function :func:`disconnect_by_func`:
5959

6060
.. code-block:: python
6161

source/button_widgets.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ The main properties of a :class:`Gtk.SpinButton` are set through
111111

112112
To change the value that :class:`Gtk.SpinButton` is showing, use
113113
:meth:`Gtk.SpinButton.set_value`. The value entered can either be an integer or
114-
float, depending on your requirements, use :meth:`Gtk.SpinButton.get_value` or
115-
:meth:`Gtk.SpinButton.get_value_as_int`, respectively.
114+
float, depending on your requirements, use :meth:`Gtk.SpinButton.get_value_as_int` or
115+
:meth:`Gtk.SpinButton.get_value`, respectively.
116116

117117
When you allow the displaying of float values in the spin button, you may wish
118118
to adjust the number of decimal spaces displayed by calling

source/dialogs.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ MessageDialog
5353
-------------
5454

5555
:class:`Gtk.MessageDialog` is a convenience class, used to create simple,
56-
standard message dialogs, with a message, an icon, and buttons for user response
56+
standard message dialogs, with a message, an icon, and buttons for user response.
5757
You can specify the type of message and the text in the :class:`Gtk.MessageDialog`
5858
constructor, as well as specifying standard buttons.
5959

source/layout-table.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You can also set a consistent spacing for all rows and/or columns with
2020
Note that with these calls, the last row and last column do not get any spacing.
2121

2222
.. deprecated:: 3.4
23-
It is reccomened that you use the :class:`Gtk.Grid` for new code.
23+
It is recommended that you use the :class:`Gtk.Grid` for new code.
2424

2525
Example
2626
^^^^^^^

source/layout.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ mouse navigation and selection like a typical list.
111111

112112
Using :class:`Gtk.ListBox` is often an alternative to :class:`Gtk.TreeView`, especially
113113
when the list content has a more complicated layout than what is allowed by a
114-
:class:`Gtk.CellRenderer`, or when the content is interactive (i.e. has a button
114+
:class:`Gtk.CellRenderer`, or when the content is interactive (e.g. has a button
115115
in it).
116116

117117
Although a :class:`Gtk.ListBox` must have only :class:`Gtk.ListBoxRow` children, you can
@@ -224,7 +224,7 @@ The :class:`Gtk.Notebook` widget is a :class:`Gtk.Container` whose children are
224224
There are many configuration options for GtkNotebook. Among other things, you
225225
can choose on which edge the tabs appear (see :meth:`Gtk.Notebook.set_tab_pos`),
226226
whether, if there are too many tabs to fit the notebook should be made bigger or
227-
scrolling arrows added (see :meth:`Gtk.Notebook.set_scrollable`, and whether
227+
scrolling arrows added (see :meth:`Gtk.Notebook.set_scrollable`), and whether
228228
there will be a popup menu allowing the users to switch pages (see
229229
:meth:`Gtk.Notebook.popup_enable`, :meth:`Gtk.Notebook.popup_disable`).
230230

source/menus.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Different classes representing different types of actions exist:
3838
* :class:`Gtk.RecentAction`: An action of which represents a list of recently
3939
used files
4040

41-
Actions represent operations that the user can be perform, along with some
41+
Actions represent operations that the user can perform, along with some
4242
information how it should be presented in the interface, including its name
4343
(not for display), its label (for display), an accelerator, whether a label
4444
indicates a tooltip as well as the callback that is called when the action

source/objects.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ API
285285
emitted when any property is changed) until the :meth:`thaw_notify` method is
286286
called.
287287

288-
It recommended to use the *with* statement when calling :meth:`freeze_notify`,
288+
It is recommended to use the *with* statement when calling :meth:`freeze_notify`,
289289
that way it is ensured that :meth:`thaw_notify` is called implicitly at
290290
the end of the block::
291291

@@ -295,7 +295,7 @@ API
295295

296296
.. method:: thaw_notify()
297297

298-
Thaw all the "notify::" signals which were thawed by :meth:`freeze_notify`.
298+
Thaw all the "notify::" signals which were frozen by :meth:`freeze_notify`.
299299

300300
It is recommended to not call :meth:`thaw_notify` explicitly but use
301301
:meth:`freeze_notify` together with the *with* statement.
@@ -344,7 +344,7 @@ API
344344
.. based on http://www.pygtk.org/articles/subclassing-gobject/sub-classing-gobject-in-python.htm
345345

346346
The :attr:`__gproperties__` dictionary is a class property where you define the
347-
properties of your object. This is not the recommend way to define new
347+
properties of your object. This is not the recommended way to define new
348348
properties, the method written above is much less verbose. The benefits
349349
of this method is that a property can be defined with more settings,
350350
like the minimum or the maximum for numbers.

source/treeview.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ The case-sensitive sorted list will look like::
293293
david
294294

295295
First of all a comparison function is needed.
296-
This function gets two rows and has to return a negative integer if the first one should come before the second one, zero if they are equal and a positive integer if the second one should come before the second one.
296+
This function gets two rows and has to return a negative integer if the first one should come before the second one, zero if they are equal and a positive integer if the second one should come before the first one.
297297

298298
.. code-block:: python
299299

0 commit comments

Comments
 (0)