Skip to content

Commit e266a52

Browse files
CI: Add a typos job & fix various ones
1 parent 404fbbf commit e266a52

13 files changed

+50
-27
lines changed

.github/workflows/typos.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- "master"
7+
jobs:
8+
typos:
9+
name: Spell Check with Typos
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Actions Repository
13+
uses: actions/checkout@v3
14+
- name: Check spelling
15+
uses: crate-ci/typos@master

.typos.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[files]
2+
extend-exclude = ["*.svg"]
3+
4+
[default.extend-words]
5+
# Ignore false-positives
6+
gir = "gir"
7+
relm = "relm"
8+
daa84 = "daa84"

_posts/2017-11-26-new-release.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ date: 2017-11-26 16:00:00 +0000
88

99
Hi everyone!
1010

11-
This release was supposed to be a minor one and to be released a lot sooner. However, as the time passed, `gtk-rs` developers weren't happy with what they had. There was always that little (but still wonderful) thing missing that we absolutely wanted to have. Suddenly, huges improvements came in and breaking changes as well. And this, is exactly how you end up from some very little and quicky release to medium and huge one.
11+
This release was supposed to be a minor one and to be released a lot sooner. However, as the time passed, `gtk-rs` developers weren't happy with what they had. There was always that little (but still wonderful) thing missing that we absolutely wanted to have. Suddenly, huges improvements came in and breaking changes as well. And this, is exactly how you end up from some very little and quickly release to medium and huge one.
1212

1313
So what took us so long to add? A lot of things, the list is quite long. You can check the pull requests below. Let's just focus on the main ones.
1414

@@ -173,7 +173,7 @@ For the interested ones, here is the list of the (major) changes:
173173
* [Add version for Sha384](https://github.com/gtk-rs/glib/pull/227)
174174
* [For the CallbackGuard, print something to stderr and use abort() inst…](https://github.com/gtk-rs/glib/pull/225)
175175
* [Fix versioning](https://github.com/gtk-rs/glib/pull/221)
176-
* [Fix versionning](https://github.com/gtk-rs/glib/pull/220)
176+
* [Fix versioning](https://github.com/gtk-rs/glib/pull/220)
177177
* [Fix crates version](https://github.com/gtk-rs/glib/pull/218)
178178
* [Add README for crates.io](https://github.com/gtk-rs/glib/pull/215)
179179
* [Be more precise when setting a property with invalid type](https://github.com/gtk-rs/glib/pull/214)
@@ -293,7 +293,7 @@ For the interested ones, here is the list of the (major) changes:
293293
* [Update authors](https://github.com/gtk-rs/gdk/pull/123)
294294
* [Update version](https://github.com/gtk-rs/gdk/pull/122)
295295
* [Separate Rectangle from cairo's](https://github.com/gtk-rs/gdk/pull/119)
296-
* [Reexport cairo::RectangleInt as Rectangle and use converions on it](https://github.com/gtk-rs/gdk/pull/117)
296+
* [Reexport cairo::RectangleInt as Rectangle and use conversions on it](https://github.com/gtk-rs/gdk/pull/117)
297297
* [Add gio dependency](https://github.com/gtk-rs/gdk/pull/116)
298298
* [Enums](https://github.com/gtk-rs/gdk/pull/115)
299299
* [Bump versions](https://github.com/gtk-rs/gdk/pull/113)
@@ -438,6 +438,6 @@ Thanks to all of our contributors for their (awesome!) work for this release:
438438
* [@thk1](https://github.com/thk1)
439439
* [@lise-henry](https://github.com/lise-henry)
440440
* [@jeandudey](https://github.com/jeandudey)
441-
* [@daa84](https://github.com/daa84)
441+
* [@data84](https://github.com/daa84)
442442
* [@Bruflot](https://github.com/Bruflot)
443443
* [@reddraggone9](https://github.com/reddraggone9)

_posts/2018-09-09-new-release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ For the interested ones, here is the list of the (major) changes:
154154
* [Don't require a mutable main context in the futures/MemoryInputStream…](https://github.com/gtk-rs/gio/pull/114)
155155
* [Add dox check on windows as well](https://github.com/gtk-rs/gio/pull/113)
156156
* [Add tests on osx](https://github.com/gtk-rs/gio/pull/112)
157-
* [Remove unneded futures-executor dependency](https://github.com/gtk-rs/gio/pull/111)
157+
* [Remove unneeded futures-executor dependency](https://github.com/gtk-rs/gio/pull/111)
158158
* [Add futures variants for all async functions.](https://github.com/gtk-rs/gio/pull/108)
159159
* [Various Source related cleanups and add PollableInputStream/PollableOutputStream](https://github.com/gtk-rs/gio/pull/106)
160160
* [Implement File::replace_contents_async manually](https://github.com/gtk-rs/gio/pull/109)
@@ -284,7 +284,7 @@ All this was possible thanks to the [gtk-rs/gir](https://github.com/gtk-rs/gir)
284284
* [Enum / Flags: generate user defined `derive`](https://github.com/gtk-rs/gir/pull/611)
285285
* [Add `use glib;` if class has async method](https://github.com/gtk-rs/gir/pull/610)
286286
* [Add ignore clipy warnings in sys](https://github.com/gtk-rs/gir/pull/609)
287-
* [Async exctraction](https://github.com/gtk-rs/gir/pull/602)
287+
* [Async extraction](https://github.com/gtk-rs/gir/pull/602)
288288
* [Fix generating function body when out parameter has reserved name](https://github.com/gtk-rs/gir/pull/603)
289289
* [Make single_version_file accept path for "versions.txt"](https://github.com/gtk-rs/gir/pull/599)
290290
* [Rename "string" in string_type to "utf8" to match glib type](https://github.com/gtk-rs/gir/pull/598)

_posts/2019-02-21-new-release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ All this was possible thanks to the [gtk-rs/gir](https://github.com/gtk-rs/gir)
366366
* [Add imports for async out parameters](https://github.com/gtk-rs/gir/pull/700)
367367
* [Remove references from TypeId usage](https://github.com/gtk-rs/gir/pull/703)
368368
* [handle aliases better](https://github.com/gtk-rs/gir/pull/702)
369-
* [Fix unstable super_calback's list for g_vfs_register_uri_scheme](https://github.com/gtk-rs/gir/pull/701)
369+
* [Fix unstable super_callback's list for g_vfs_register_uri_scheme](https://github.com/gtk-rs/gir/pull/701)
370370
* [Check for known subtypes when deciding if a type is a final type](https://github.com/gtk-rs/gir/pull/698)
371371
* [Fix invalid gboolean generation](https://github.com/gtk-rs/gir/pull/699)
372372
* [Start of user callbacks generation](https://github.com/gtk-rs/gir/pull/667)
@@ -389,7 +389,7 @@ All this was possible thanks to the [gtk-rs/gir](https://github.com/gtk-rs/gir)
389389
* [Remove now unneeded use statements for the glib_wrapper! macro](https://github.com/gtk-rs/gir/pull/671)
390390
* [Implement basics for subclassing](https://github.com/gtk-rs/gir/pull/669)
391391
* [Default generate_display_trait](https://github.com/gtk-rs/gir/pull/668)
392-
* [Fix display and strenghten CI](https://github.com/gtk-rs/gir/pull/663)
392+
* [Fix display and strengthen CI](https://github.com/gtk-rs/gir/pull/663)
393393
* [Generate Display impl for enums](https://github.com/gtk-rs/gir/pull/643)
394394
* [Add pub for modules to use them from the gir library](https://github.com/gtk-rs/gir/pull/665)
395395
* [Fix missing glib](https://github.com/gtk-rs/gir/pull/662)

_posts/2019-06-22-new-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ We talked about this change for a while and decided it was the best for our user
5757

5858
We made some changes into `cairo` type hierarchies that led to a global improvement. To sum it up very shortly (thanks to [@SimonSapin](https://github.com/SimonSapin) for providing it!):
5959

60-
1. Patterns: pseudo-inheritence with Deref (like surfaces already do) instead of an enum of each pattern type.
60+
1. Patterns: pseudo-inheritance with Deref (like surfaces already do) instead of an enum of each pattern type.
6161
2. PDF/PS/SVG: a single surface type each instead of a public module, and restrict streams to `'static` to make them sound.
6262
3. XBC: a struct like other surface types, instead of a trait.
6363
4. Inherent methods instead of various extension traits

_posts/2019-12-15-new-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ For the interested ones, here is the list of the merged pull requests:
298298
* [Make AccelGroup::connect() and ::connect_by_path() more usable](https://github.com/gtk-rs/gtk/pull/915)
299299
* [Add renaming for WidgetExt::set_name and BuildableExt::set_name](https://github.com/gtk-rs/gtk/pull/917)
300300
* [Derive Default for builders](https://github.com/gtk-rs/gtk/pull/919)
301-
* [subclass/container: widget in set_focu_child should be Nullable](https://github.com/gtk-rs/gtk/pull/922)
301+
* [subclass/container: widget in set_focus_child should be Nullable](https://github.com/gtk-rs/gtk/pull/922)
302302
* [subclass/widget: Implement default handling for parent events](https://github.com/gtk-rs/gtk/pull/921)
303303

304304
[pangocairo](https://github.com/gtk-rs/pangocairo):

_posts/2020-07-04-new-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ For the interested ones, here is the list of the merged pull requests:
191191
* [gdk/gdk: build: Compute and export GDK backends](https://github.com/gtk-rs/sys/pull/167)
192192
* [GIR files focal update](https://github.com/gtk-rs/sys/pull/164)
193193
* [Add correct versions for get\_type functions](https://github.com/gtk-rs/sys/pull/171)
194-
* [Depend on cairo-sys when selectin v3\_24\_2 feature](https://github.com/gtk-rs/sys/pull/173)
194+
* [Depend on cairo-sys when selecting v3\_24\_2 feature](https://github.com/gtk-rs/sys/pull/173)
195195
* [Use eprintln](https://github.com/gtk-rs/sys/pull/175)
196196

197197
[glib](https://github.com/gtk-rs/glib):

_posts/2021-06-22-new-release.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ For the interested ones, here is the list of the merged pull requests:
318318
* [glib: rename remaining \_generic to \_values](https://github.com/gtk-rs/gtk3-rs/pull/315)
319319
* [glib: Derive Ord on Type](https://github.com/gtk-rs/gtk3-rs/pull/317)
320320
* [glib: Improve the API of Type](https://github.com/gtk-rs/gtk3-rs/pull/318)
321-
* [glib-macros: Forward the visibility of the type into the code generat…](https://github.com/gtk-rs/gtk3-rs/pull/321)
321+
* [glib-macros: Forward the visibility of the type into the code generated](https://github.com/gtk-rs/gtk3-rs/pull/321)
322322
* [ connect\_unsafe: Refactor, then don't ignore the return\_type for null objects ](https://github.com/gtk-rs/gtk3-rs/pull/319)
323323
* [glib: `#[object_subclass]` proc macro.](https://github.com/gtk-rs/gtk3-rs/pull/335)
324324
* [glib: Move `type_data()` and `get_type()` to new `unsafe trait`](https://github.com/gtk-rs/gtk3-rs/pull/338)
@@ -333,7 +333,7 @@ For the interested ones, here is the list of the merged pull requests:
333333
* [glib: Fix compilation of listbox\_model example](https://github.com/gtk-rs/gtk3-rs/pull/355)
334334
* [glib: Don't offset property ids before calling ObjectImpl::set\_proper…](https://github.com/gtk-rs/gtk3-rs/pull/368)
335335
* [Add a GError derive macro](https://github.com/gtk-rs/gtk3-rs/pull/367)
336-
* [glib-macros: Fix typo: doman -> domain](https://github.com/gtk-rs/gtk3-rs/pull/370)
336+
* [glib-macros: Fix typo: domain -> domain](https://github.com/gtk-rs/gtk3-rs/pull/370)
337337
* [Fix some clone @default-return handlings](https://github.com/gtk-rs/gtk3-rs/pull/373)
338338
* [Fix panic when there is no @default-panic and add more checks for clone macro](https://github.com/gtk-rs/gtk3-rs/pull/377)
339339
* [glib: Actually call the function in \_once wrappers](https://github.com/gtk-rs/gtk3-rs/pull/383)
@@ -624,7 +624,7 @@ For the interested ones, here is the list of the merged pull requests:
624624
* [misc: bump default features](https://github.com/gtk-rs/gtk4-rs/pull/264)
625625
* [Specify naming of types, signals & properties](https://github.com/gtk-rs/gtk4-rs/pull/269)
626626
* [Finish up prerequisites](https://github.com/gtk-rs/gtk4-rs/pull/265)
627-
* [Accomodate Gio changes](https://github.com/gtk-rs/gtk4-rs/pull/271)
627+
* [Accommodate Gio changes](https://github.com/gtk-rs/gtk4-rs/pull/271)
628628
* [Put listings into the shared workspace](https://github.com/gtk-rs/gtk4-rs/pull/272)
629629
* [gtk: expose KeyvalTrigger](https://github.com/gtk-rs/gtk4-rs/pull/274)
630630
* [Update display of minimum supported Rust version](https://github.com/gtk-rs/gtk4-rs/pull/278)
@@ -655,7 +655,7 @@ For the interested ones, here is the list of the merged pull requests:
655655
* [Add examples to README](https://github.com/gtk-rs/gtk4-rs/pull/295)
656656
* [gtk: bind WidgetClass::query\_action](https://github.com/gtk-rs/gtk4-rs/pull/328)
657657
* [Rename ToGlib into IntoGlib](https://github.com/gtk-rs/gtk4-rs/pull/331)
658-
* [Accomodate changes in glib::Value](https://github.com/gtk-rs/gtk4-rs/pull/325)
658+
* [Accommodate changes in glib::Value](https://github.com/gtk-rs/gtk4-rs/pull/325)
659659
* [gdk: make ContentProvider subclassable](https://github.com/gtk-rs/gtk4-rs/pull/314)
660660
* [Put modules of examples in separate files](https://github.com/gtk-rs/gtk4-rs/pull/330)
661661
* [gdk: manually bind ContentFormats::mime\_types](https://github.com/gtk-rs/gtk4-rs/pull/335)
@@ -850,8 +850,8 @@ All this was possible thanks to the [gir][gir] project as well:
850850
* [docs: fix a missing param due to not rebasing #1151](https://github.com/gtk-rs/gir/pull/1154)
851851
* [codegen: use C value instead of hardcoding it](https://github.com/gtk-rs/gir/pull/1152)
852852
* [docs: use doc\_ignore\_parameters for global functions as well](https://github.com/gtk-rs/gir/pull/1155)
853-
* [codgen: generate a builder method for objects with a Builder ](https://github.com/gtk-rs/gir/pull/1156)
854-
* [codgen: generate impl T if there are builder properties as well](https://github.com/gtk-rs/gir/pull/1159)
853+
* [codegen: generate a builder method for objects with a Builder ](https://github.com/gtk-rs/gir/pull/1156)
854+
* [codegen: generate impl T if there are builder properties as well](https://github.com/gtk-rs/gir/pull/1159)
855855
* [\[refactor\] Simplify handling of trait bounds and aliases](https://github.com/gtk-rs/gir/pull/1160)
856856
* [codegen/doc: Make extension trait docs link back to the type](https://github.com/gtk-rs/gir/pull/1168)
857857
* [docs: properly look for renamed enum members](https://github.com/gtk-rs/gir/pull/1166)
@@ -862,7 +862,7 @@ All this was possible thanks to the [gir][gir] project as well:
862862
* [enums,flags: Do not analyze imports if the type is not generated](https://github.com/gtk-rs/gir/pull/1169)
863863
* [Docs: refactored + GI Docgen support](https://github.com/gtk-rs/gir/pull/1161)
864864
* [docs: look for renamed properties getters/setters](https://github.com/gtk-rs/gir/pull/1172)
865-
* [codgen: make the builder method doc slightly better formatted](https://github.com/gtk-rs/gir/pull/1173)
865+
* [codegen: make the builder method doc slightly better formatted](https://github.com/gtk-rs/gir/pull/1173)
866866
* [Generate doc aliases on items in wrapper! macro](https://github.com/gtk-rs/gir/pull/1176)
867867
* [use C const for flags variants](https://github.com/gtk-rs/gir/pull/1175)
868868
* [Fix sys crate name for bitfields](https://github.com/gtk-rs/gir/pull/1177)

_posts/2022-01-14-new-release.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ This solves one of the common problems when using `Cairo` in multi-threaded appl
181181

182182
### GIO bindings improvements
183183

184-
The gio bindings saw many additions and improvements. Among other things it is now possible to implement the [`gio::Initable`](https://gtk-rs.org/gtk-rs-core/stable/0.15/docs/gio/struct.Initable.html) interface, the [`gio::IOExtention`](https://gtk-rs.org/gtk-rs-core/stable/0.15/docs/gio/struct.IOExtension.html) API is now available, and the [`gio::Task`](https://gtk-rs.org/gtk-rs-core/stable/0.15/docs/gio/struct.Task.html) bindings have been reworked to address soundness issues. More improvements to the `gio::Task` bindings are necessary for them to become nice to use from Rust.
184+
The gio bindings saw many additions and improvements. Among other things it is now possible to implement the [`gio::Initable`](https://gtk-rs.org/gtk-rs-core/stable/0.15/docs/gio/struct.Initable.html) interface, the [`gio::IOExtension`](https://gtk-rs.org/gtk-rs-core/stable/0.15/docs/gio/struct.IOExtension.html) API is now available, and the [`gio::Task`](https://gtk-rs.org/gtk-rs-core/stable/0.15/docs/gio/struct.Task.html) bindings have been reworked to address soundness issues. More improvements to the `gio::Task` bindings are necessary for them to become nice to use from Rust.
185185

186186
### Gdkwayland
187187

@@ -416,7 +416,7 @@ For the interested ones, here is the list of the merged pull requests:
416416
* [book: Fix explanation in gobject memory management](https://github.com/gtk-rs/gtk4-rs/pull/589)
417417
* [book: Improve `todo_app` listing](https://github.com/gtk-rs/gtk4-rs/pull/583)
418418
* [Fixed small typo in Virtual methods example README](https://github.com/gtk-rs/gtk4-rs/pull/588)
419-
* [book: Use weak reference in `gobject_memory_managment`](https://github.com/gtk-rs/gtk4-rs/pull/590)
419+
* [book: Use weak reference in `gobject_memory_management`](https://github.com/gtk-rs/gtk4-rs/pull/590)
420420
* [book: Rename listing app-id to org.gtk-rs](https://github.com/gtk-rs/gtk4-rs/pull/598)
421421
* [book: Finish up remainder of app-id](https://github.com/gtk-rs/gtk4-rs/pull/599)
422422
* [book: Mention that expressions only go in one direction](https://github.com/gtk-rs/gtk4-rs/pull/600)
@@ -568,7 +568,7 @@ All this was possible thanks to the [gtk-rs/gir](https://github.com/gtk-rs/gir)
568568
* [docs: allow to set `doc_struct_name` for global functions](https://github.com/gtk-rs/gir/pull/1285)
569569
* [codegen: trim extra `_async` in future variants](https://github.com/gtk-rs/gir/pull/1286)
570570
* [writer: check return code as `gboolean`](https://github.com/gtk-rs/gir/pull/1287)
571-
* [docs: avoid generating docs for uneeded properties getters/setters](https://github.com/gtk-rs/gir/pull/1289)
571+
* [docs: avoid generating docs for unneeded properties getters/setters](https://github.com/gtk-rs/gir/pull/1289)
572572
* [parser: ignore private records](https://github.com/gtk-rs/gir/pull/1293)
573573
* [support fundamental types](https://github.com/gtk-rs/gir/pull/1294)
574574
* [analysis: don't take a slice of copy types by ref](https://github.com/gtk-rs/gir/pull/1296)

0 commit comments

Comments
 (0)