Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion book/src/todo_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/main/b
```

We plan to store our data as a file, so we create a utility function to provide a suitable file path for us.
We use [`glib::user_config_dir`](https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/fn.user_config_dir.html) to get the path to the config directory and create a new subdirectory for our app.
We use [`glib::user_data_dir`](https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/fn.user_data_dir.html) to get the path for storing application data and create a new subdirectory for our app.
Then we return the file path.

Filename: <a class=file-link href="https://github.com/gtk-rs/gtk4-rs/blob/main/book/listings/todo/2/utils.rs">listings/todo/2/utils.rs</a>
Expand Down
Loading