Allow LabeledItem to be used as a regular widget, hopefully
This commit is contained in:
parent
724f7f5a9f
commit
feee2bacc3
2 changed files with 19 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use gtk4::{prelude::*, Align, Label, Orientation, Widget};
|
||||
use relm4::{ComponentBuilder, ComponentParts, Sender, SimpleComponent};
|
||||
use relm4::{ComponentParts, Sender, SimpleComponent};
|
||||
use std::cell::RefCell;
|
||||
|
||||
#[derive(Debug)]
|
||||
|
|
@ -107,7 +107,7 @@ impl SimpleComponent for LabeledItem {
|
|||
root: &Self::Root,
|
||||
input: &Sender<Self::Input>,
|
||||
_output: &Sender<Self::Output>,
|
||||
) -> ComponentParts<Self, Self::Widgets> {
|
||||
) -> ComponentParts<Self> {
|
||||
let model = LabeledItem {
|
||||
_title: String::default(),
|
||||
_desc: None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue