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.
This commit is contained in:
Michael Mc Donnell 2024-09-12 19:53:22 -10:00
parent 914d989049
commit 289549fbeb

View file

@ -1,5 +1,5 @@
[package] [package]
name = "cosmic-image-button" name = "image-button"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
@ -10,4 +10,4 @@ tracing-subscriber = "0.3.17"
[dependencies.libcosmic] [dependencies.libcosmic]
path = "../../" path = "../../"
default-features = false default-features = false
features = ["debug", "wayland", "tokio"] features = ["debug", "winit", "tokio"]