diff --git a/src/components/post_page.rs b/src/components/post_page.rs index bf9fb2e..7403bc2 100644 --- a/src/components/post_page.rs +++ b/src/components/post_page.rs @@ -94,6 +94,7 @@ impl SimpleComponent for PostPage { }, gtk::Button { + #[watch] set_label: &model.info.post_view.creator.name, connect_clicked => PostInput::OpenPerson, }, @@ -113,6 +114,7 @@ impl SimpleComponent for PostPage { }, gtk::Button { + #[watch] set_label: &model.info.community_view.community.title, connect_clicked => PostInput::OpenCommunity, }, diff --git a/src/dialogs/editor.rs b/src/dialogs/editor.rs index f6e249a..0710e71 100644 --- a/src/dialogs/editor.rs +++ b/src/dialogs/editor.rs @@ -99,12 +99,12 @@ impl SimpleComponent for EditorDialog { set_text: "Body:", set_halign: gtk::Align::Start, }, - #[name(body)] gtk::TextView { set_editable: true, set_margin_top: 5, set_margin_bottom: 10, set_vexpand: true, + set_buffer: Some(&model.body_buffer), }, gtk::Box { set_orientation: gtk::Orientation::Horizontal,