Merge pull request #2964 from feltcat/typos

Fix some typos and grammar in new widgets documentation
This commit is contained in:
mergify[bot] 2020-01-14 19:45:59 +00:00 committed by GitHub
commit 67672bf5a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@ needs to change, suitable signals have to be emitted. This will be explained
later. later.
The first callback is `:fit`. This function is called to select the size of your The first callback is `:fit`. This function is called to select the size of your
widget. The arguments to this function is the available space and it should widget. The arguments to this function are the available space and it should
return its desired size. Note that this function only provides a hint which is return its desired size. Note that this function only provides a hint which is
not necessarily followed. The widget must also be able to draw itself at not necessarily followed. The widget must also be able to draw itself at
different sizes than the one requested. different sizes than the one requested.
@ -26,9 +26,9 @@ different sizes than the one requested.
end end
The next callback is `:draw`. As the name suggests, this function is called to The next callback is `:draw`. As the name suggests, this function is called to
draw the widget. The arguments to this widget are the context that the widget is draw the widget. The arguments to this function are the context that the widget is
drawn in, the Cairo context on which it should be drawn and the widget's size. drawn in, the Cairo context on which it should be drawn and the widget's size.
The Cairo context is set up in such a way that the widget as its top-left corner The Cairo context is set up in such a way that the widget has its top-left corner
at (0, 0) and its bottom-right corner at (width, height). In other words, no at (0, 0) and its bottom-right corner at (width, height). In other words, no
special transformation needs to be done. Note that during this callback a special transformation needs to be done. Note that during this callback a
suitable clip will already be applied to the Cairo context so that this callback suitable clip will already be applied to the Cairo context so that this callback