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

Commit

Permalink
Add doc for FileChooserDialog::with_buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
EPashkin committed Dec 3, 2017
1 parent 7c1b110 commit 49f9699
Showing 1 changed file with 11 additions and 0 deletions.
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)]
);
```

0 comments on commit 49f9699

Please sign in to comment.