From f5cd2b822e99aafbeb5ea5c19db4bb920356d92d Mon Sep 17 00:00:00 2001 From: Sophie Herold Date: Fri, 19 Jul 2024 15:09:45 +0200 Subject: [PATCH] windowContent: Remove unneeded template child --- src/widgets/window_content.rs | 3 --- src/widgets/window_content.ui | 2 +- src/window.rs | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/widgets/window_content.rs b/src/widgets/window_content.rs index ab9c9f6..799d066 100644 --- a/src/widgets/window_content.rs +++ b/src/widgets/window_content.rs @@ -29,7 +29,6 @@ use adw::subclass::prelude::*; use glib::Properties; use gtk::CompositeTemplate; -use super::*; use crate::deps::*; mod imp { @@ -41,8 +40,6 @@ mod imp { pub struct LpWindowContent { #[template_child] pub(super) toolbar_view: TemplateChild, - #[template_child] - pub(super) header_container: TemplateChild, #[property(get, set, nullable)] headerbar: RefCell>, diff --git a/src/widgets/window_content.ui b/src/widgets/window_content.ui index 2b5b73c..98870c3 100644 --- a/src/widgets/window_content.ui +++ b/src/widgets/window_content.ui @@ -14,7 +14,7 @@ - + diff --git a/src/window.rs b/src/window.rs index 689601c..b1058c6 100644 --- a/src/window.rs +++ b/src/window.rs @@ -115,6 +115,7 @@ mod imp { #[property(get = Self::is_showing_image)] pub(super) is_showing_image: PhantomData, + /// Set via binding to HeaderBar #[property(get, set)] headerbar_opacity: Cell,