windowContent: Remove unneeded template child

This commit is contained in:
Sophie Herold 2024-07-19 15:09:45 +02:00
parent 6070939382
commit f5cd2b822e
3 changed files with 2 additions and 4 deletions

View file

@ -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<adw::ToolbarView>,
#[template_child]
pub(super) header_container: TemplateChild<LpShyBin>,
#[property(get, set, nullable)]
headerbar: RefCell<Option<gtk::Widget>>,

View file

@ -14,7 +14,7 @@
<property name="child">
<object class="AdwToolbarView" id="toolbar_view">
<child type="top">
<object class="LpShyBin" id="header_container">
<object class="LpShyBin">
<property name="child" bind-source="LpWindowContent" bind-property="headerbar" />
</object>
</child>

View file

@ -115,6 +115,7 @@ mod imp {
#[property(get = Self::is_showing_image)]
pub(super) is_showing_image: PhantomData<bool>,
/// Set via binding to HeaderBar
#[property(get, set)]
headerbar_opacity: Cell<f64>,