summaryrefslogtreecommitdiffstats
path: root/examples/todos.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2019-11-09 19:29:23 +0100
committerLibravatar GitHub <noreply@github.com>2019-11-09 19:29:23 +0100
commit839e039dbf2fb89dcb8c141503740777d2af2eb3 (patch)
tree9c775128e047e4a141f2aefb691e7e31a801ba93 /examples/todos.rs
parente66d38403d09b265f111d9e1b59af6143464d912 (diff)
parente953b1828d5b8dbdd145829f47c4817137e37f0d (diff)
downloadiced-839e039dbf2fb89dcb8c141503740777d2af2eb3.tar.gz
iced-839e039dbf2fb89dcb8c141503740777d2af2eb3.tar.bz2
iced-839e039dbf2fb89dcb8c141503740777d2af2eb3.zip
Merge pull request #49 from hecrj/feature/control-window-title
Allow applications to control the window title
Diffstat (limited to 'examples/todos.rs')
-rw-r--r--examples/todos.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/todos.rs b/examples/todos.rs
index 2ebbcc7c..5257fc12 100644
--- a/examples/todos.rs
+++ b/examples/todos.rs
@@ -25,6 +25,10 @@ pub enum Message {
impl Application for Todos {
type Message = Message;
+ fn title(&self) -> String {
+ String::from("Todos - Iced")
+ }
+
fn update(&mut self, message: Message) {
match message {
Message::InputChanged(value) => {