aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example/Cargo.toml2
-rw-r--r--example/src/main.rs2
-rw-r--r--src/dialog.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/example/Cargo.toml b/example/Cargo.toml
index 7bc22dc..8a72e1c 100644
--- a/example/Cargo.toml
+++ b/example/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "example"
+name = "dialog_example"
version = "0.0.1"
edition = "2024"
diff --git a/example/src/main.rs b/example/src/main.rs
index 0234319..6b0a363 100644
--- a/example/src/main.rs
+++ b/example/src/main.rs
@@ -18,7 +18,7 @@ enum Message {
}
fn main() -> iced::Result {
- iced::run("Dialog Example", State::update, State::view)
+ iced::run(State::update, State::view)
}
impl State {
diff --git a/src/dialog.rs b/src/dialog.rs
index 0f70c0a..dba27f7 100644
--- a/src/dialog.rs
+++ b/src/dialog.rs
@@ -144,7 +144,7 @@ where
}
/// Extends the [`Dialog`] with the given buttons.
- pub fn extend(
+ pub fn extend_buttons(
self,
buttons: impl IntoIterator<Item = Element<'a, Message, Theme, Renderer>>,
) -> Self {