From 289549fbeb36804a20fd65007cb7ed11becb2729 Mon Sep 17 00:00:00 2001 From: Michael Mc Donnell Date: Thu, 12 Sep 2024 19:53:22 -1000 Subject: [PATCH] Fix image-button example The image-button example did not work with `just run image-button`. The first problem was that the package name was `cosmic-image-button` and not `image-button`. It was defined as `image-button` in the justfile. The second problem was that the `wayland` feature defines the `set_window_title` as taking an `Id`. The easiest solution was to just use the `winit` feature instead. We can alternatively pass `window::Id::MAIN` if needed. --- examples/image-button/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/image-button/Cargo.toml b/examples/image-button/Cargo.toml index b87ac435..cb3ac811 100644 --- a/examples/image-button/Cargo.toml +++ b/examples/image-button/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "cosmic-image-button" +name = "image-button" version = "0.1.0" edition = "2021" @@ -10,4 +10,4 @@ tracing-subscriber = "0.3.17" [dependencies.libcosmic] path = "../../" default-features = false -features = ["debug", "wayland", "tokio"] +features = ["debug", "winit", "tokio"]