mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
draft 10, 11 status codes
This commit is contained in:
parent
e865221598
commit
80aea6a653
6 changed files with 68 additions and 3 deletions
|
|
@ -8,10 +8,12 @@ use adw::ToolbarView;
|
|||
use std::sync::Arc;
|
||||
|
||||
pub struct Request {
|
||||
content: Arc<Content>,
|
||||
widget: Arc<Widget>,
|
||||
}
|
||||
|
||||
impl Request {
|
||||
// Construct
|
||||
pub fn new_arc() -> Arc<Self> {
|
||||
// Init components
|
||||
let content = Content::new_arc();
|
||||
|
|
@ -20,7 +22,12 @@ impl Request {
|
|||
let widget = Widget::new_arc(content.gobject());
|
||||
|
||||
// Result
|
||||
Arc::new(Self { widget })
|
||||
Arc::new(Self { content, widget })
|
||||
}
|
||||
|
||||
// Actions
|
||||
pub fn show(&self, placeholder: &str, sensitive: bool) {
|
||||
self.content.set(placeholder, sensitive);
|
||||
}
|
||||
|
||||
// Getters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue