Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Add doc for FileChooserDialog::with_buttons #39

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
11 changes: 11 additions & 0 deletions gtk/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,3 +353,14 @@ See also the `Widget:tooltip-markup` property and
`Tooltip::set_markup`.
## `markup`
the contents of the tooltip for `self`, or `None`
<!-- impl FileChooserDialog::fn with_buttons -->
This function creates a `FileChooserDialog` with buttons:

```no_run
let dialog = FileChooserDialog::with_buttons::<Window>(
Some("Open File"),
None,
FileChooserAction::Open,
&[("_Cancel", ResponseType::Cancel), ("_Open", ResponseType::Accept)]
);
```