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

Commit 49f9699

Browse files
committed
Add doc for FileChooserDialog::with_buttons
1 parent 7c1b110 commit 49f9699

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

gtk/docs.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,3 +353,14 @@ See also the `Widget:tooltip-markup` property and
353353
`Tooltip::set_markup`.
354354
## `markup`
355355
the contents of the tooltip for `self`, or `None`
356+
<!-- impl FileChooserDialog::fn with_buttons -->
357+
This function creates a `FileChooserDialog` with buttons:
358+
359+
```no_run
360+
let dialog = FileChooserDialog::with_buttons::<Window>(
361+
Some("Open File"),
362+
None,
363+
FileChooserAction::Open,
364+
&[("_Cancel", ResponseType::Cancel), ("_Open", ResponseType::Accept)]
365+
);
366+
```

0 commit comments

Comments
 (0)