You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0277]: the trait `glib::object::IsA<relm4::gtk4::Widget>` is not implemented for `BaseComponent`
--> src/ui/window.rs:676:54
|
676 | ... self.carousel.append(self.partition.widget());
| ------ ^^^^^^^^^^^^^^^^^^^^^^^ requires `BaseComponent` to be a GObject that can be statically cast to `relm4::gtk4::Widget`
| |
| required by a bound introduced by this call
|
help: the trait `IsA<relm4::gtk4::Widget>` is not implemented for `BaseComponent`
--> src/ui/templates/base.rs:4:1
|
4 | #[relm4::widget_template(pub)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: if this is your own object, use the `glib::wrapper!` macro to implement this trait: https://gtk-rs.org/gtk-rs-core/stable/latest/docs/glib/macro.wrapper.html
= help: the following other types implement trait `IsA<T>`:
`ATContext` implements `IsA<ATContext>`
`ATContext` implements `IsA<libgweather::glib::Object>`
`AboutWindow` implements `IsA<AboutWindow>`
`AboutWindow` implements `IsA<Buildable>`
`AboutWindow` implements `IsA<ConstraintTarget>`
`AboutWindow` implements `IsA<Native>`
`AboutWindow` implements `IsA<Root>`
`AboutWindow` implements `IsA<ShortcutManager>`
and 2463 others
note: required by a bound in `Carousel::append`
--> /build/cargo-deps-vendor/source-registry-0/libadwaita-0.9.2/src/auto/carousel.rs:52:39
|
52 | pub fn append(&self, child: &impl IsA<gtk::Widget>) {
| ^^^^^^^^^^^^^^^^ required by this bound in `Carousel::append`
= note: this error originates in the attribute macro `relm4::widget_template` (in Nightly builds, run with -Z macro-backtrace for more info)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
My custom widget
usage of widget
got error
error got here: https://git.oss.uzinfocom.uz/xinux/xeonitte/src/branch/widget-templates/src/ui/window.rs#L677
BaseComponent: https://git.oss.uzinfocom.uz/xinux/xeonitte/src/branch/widget-templates/src/ui/templates/base.rs
PartitionModel: https://git.oss.uzinfocom.uz/xinux/xeonitte/src/branch/widget-templates/src/ui/partitions/partition_model.rs#L101
I have tried to use .upcast() but it seems not working
All reactions