Skip to content

Commit

Permalink
book: Add another paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Oct 30, 2023
1 parent b6fafe2 commit b825e35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion book/src/todo_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/master
```

We also add an action which allows us to remove done tasks.
<!-- TODO -->
This time we use another method called [`install_action`](https://gtk-rs.org/gtk4-rs/stable/latest/docs/gtk4/subclass/widget/trait.WidgetClassExt.html#method.install_action).
This method has a couple of limitation.
It can only be used when subclassing widgets, and it doesn't support stateful actions.
On the flipside, its usage is concise and it has a corresponding sister-method [`install_action_async`](https://gtk-rs.org/gtk4-rs/stable/latest/docs/gtk4/subclass/widget/trait.WidgetClassExt.html#method.install_action_async) which we will use in one of the future chapters.

Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/master/book/listings/todo/2/window/imp.rs">listings/todo/2/window/imp.rs</a>

Expand Down

0 comments on commit b825e35

Please sign in to comment.