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
I'm trying to use libpanel with a project of mine (source code for reference) however I'm having trouble using the libpanel widgets in the view! macro. Here's the full view! macro that I'm using:
While libpanel::Statusbar does implement the container_add function (used by here by add_prefix), the trait bounds are not satisfied. Here is the full error message:
cargo run
Compiling datolite v0.1.0 (/home/cyn/Documents/Dev/Datolite)
error: expected `|`
--> src/main.rs:151:54
|
151 | ... add_prefix[0] => >k4::Label {},
| ^
error[E0599]: the method `container_add` exists for struct `libpanel::Statusbar`, but its trait bounds were not satisfied
--> src/main.rs:151:55
|
151 | ... add_prefix[0] => >k4::Label {},
| ^^^^
|
::: /home/cyn/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libpanel-0.6.0/src/auto/statusbar.rs:9:1
|
9 | / glib::wrapper! {
10 | | #[doc(alias = "PanelStatusbar")]
11 | | pub struct Statusbar(Object<ffi::PanelStatusbar, ffi::PanelStatusbarClass>) @extends gtk::Widget, @implements gtk::Accessible, gtk::B...
... |
16 | | }
| |_- doesn't satisfy `libpanel::Statusbar: RelmContainerExt` or `libpanel::Statusbar: RelmSetChildExt`
|
= note: the following trait bounds were not satisfied:
`libpanel::Statusbar: RelmSetChildExt`
which is required by `libpanel::Statusbar: RelmContainerExt`
For more information about this error, try `rustc --explain E0599`.
error: could not compile `datolite` (bin "datolite") due to 2 previous errors
I'm uncertain if the issue is with libpanel or Relm. I should note that the libpanel feature flag for Relm4 is enabled.
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.
I'm trying to use
libpanelwith a project of mine (source code for reference) however I'm having trouble using thelibpanelwidgets in theview!macro. Here's the fullview!macro that I'm using:The area of focus is here:
While
libpanel::Statusbardoes implement thecontainer_addfunction (used by here byadd_prefix), the trait bounds are not satisfied. Here is the full error message:I'm uncertain if the issue is with
libpanelor Relm. I should note that thelibpanelfeature flag forRelm4is enabled.All reactions